refactor(api): restructure routes to include versioning and maintain existing feedback endpoint
This commit is contained in:
parent
3160b8a5a5
commit
91f2865635
1 changed files with 6 additions and 1 deletions
|
|
@ -16,8 +16,13 @@
|
|||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
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([
|
||||
'middleware' => ['auth:sanctum', 'api.ability:write'],
|
||||
'prefix' => 'v1',
|
||||
|
|
|
|||
Loading…
Reference in a new issue