lots of progress

This commit is contained in:
2025-04-20 17:54:08 +03:00
parent de8775d0c3
commit bb3c9c82e0
12 changed files with 2293 additions and 29 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\JsonApiController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
// JSON Validation API Routes
Route::prefix('json')->group(function () {
// Validate JSON
Route::post('/validate', [JsonApiController::class, 'validateJson']);
// Validate JSON against schema
Route::post('/validate-schema', [JsonApiController::class, 'validateSchema']);
// Format JSON
Route::post('/format', [JsonApiController::class, 'formatJson']);
// Compare JSON documents
Route::post('/compare', [JsonApiController::class, 'compareJson']);
});