refactor(api): restructure routes to include versioning and maintain existing feedback endpoint
This commit is contained in:
@@ -16,8 +16,13 @@ use App\Models\Server;
|
|||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/health', [OtherController::class, 'healthcheck']);
|
Route::get('/health', [OtherController::class, 'healthcheck']);
|
||||||
Route::post('/feedback', [OtherController::class, 'feedback']);
|
Route::group([
|
||||||
|
'prefix' => 'v1',
|
||||||
|
], function () {
|
||||||
|
Route::get('/health', [OtherController::class, 'healthcheck']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::post('/feedback', [OtherController::class, 'feedback']);
|
||||||
Route::group([
|
Route::group([
|
||||||
'middleware' => ['auth:sanctum', 'api.ability:write'],
|
'middleware' => ['auth:sanctum', 'api.ability:write'],
|
||||||
'prefix' => 'v1',
|
'prefix' => 'v1',
|
||||||
|
|||||||
Reference in New Issue
Block a user