Skip to content

Commit ab7933d

Browse files
committed
Add get survey by slug on backend
1 parent 23eb351 commit ab7933d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routes/api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
});
2222
Route::post('/logout', [AuthController::class, 'logout']);
2323
Route::resource('/survey', \App\Http\Controllers\SurveyController::class);
24+
Route::get('/survey-by-slug/{survey:slug}', [\App\Http\Controllers\SurveyController::class, 'show']);
2425
});
2526

2627
Route::post('/register', [AuthController::class, 'register']);

0 commit comments

Comments
 (0)