2025-04-18 13:30:53 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\ProfileController;
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
2025-04-20 17:54:08 +03:00
|
|
|
return view('jsonlint');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/compare', function () {
|
|
|
|
|
return view('jsoncompare');
|
2025-04-18 13:30:53 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/dashboard', function () {
|
|
|
|
|
return view('dashboard');
|
|
|
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
|
|
2025-04-20 17:54:08 +03:00
|
|
|
Route::get('/jsonlint', function () {
|
|
|
|
|
return view('jsonlint');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/jsoncompare', function () {
|
|
|
|
|
return view('jsoncompare');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/jsonschema', function () {
|
|
|
|
|
return view('jsonschema');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/jsontemplates', function () {
|
|
|
|
|
return view('jsontemplates');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::get('/api', function () {
|
|
|
|
|
return view('api');
|
|
|
|
|
})->name('api');
|
|
|
|
|
|
2025-04-18 13:30:53 +03:00
|
|
|
Route::middleware('auth')->group(function () {
|
|
|
|
|
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
|
|
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
|
|
|
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
require __DIR__.'/auth.php';
|