|
|
@@ -90,29 +90,31 @@ Route::middleware('auth:sanctum')->group(function () {
|
|
|
});
|
|
|
|
|
|
Route::middleware(['auth:sanctum', 'abilities:Admin'])->group(function () {
|
|
|
-
|
|
|
//activity
|
|
|
Route::post('/activity/store', [ActivityController::class, 'store']);
|
|
|
Route::post('/activity/update', [ActivityController::class, 'update']);
|
|
|
Route::post('/activity/sql', [ActivityController::class, 'sql']);
|
|
|
Route::post('/activity/uploadFile', [ActivityController::class, 'uploadFile']);
|
|
|
+});
|
|
|
|
|
|
- // CheckIn
|
|
|
- Route::post('/check_in/update', [CheckInController::class, 'update']);
|
|
|
- Route::post('/check_in/check_out', [CheckInController::class, 'check_out']);
|
|
|
- Route::post('/checkin/show', [CheckInController::class, 'show']);
|
|
|
- Route::post('/checkin/export', [CheckInController::class, 'export']);
|
|
|
-
|
|
|
+Route::middleware(['auth:sanctum', 'ability:Draw,Admin'])->group(function () {
|
|
|
// Draw
|
|
|
Route::post('/draw/draw', [DrawController::class, 'draw']);
|
|
|
Route::post('/draw/store', [DrawController::class, 'store']);
|
|
|
Route::post('/draw/donate', [DrawController::class, 'donate']);
|
|
|
Route::post('/draw/test', [DrawController::class, 'test']);
|
|
|
|
|
|
- // Prize
|
|
|
- Route::post('/prize/store', [PrizeController::class, 'store']);
|
|
|
- Route::post('/prize/count_by_prize', [PrizeController::class, 'count_by_prize']);
|
|
|
-
|
|
|
+ // Prize
|
|
|
+ Route::post('/prize/store', [PrizeController::class, 'store']);
|
|
|
+ Route::post('/prize/count_by_prize', [PrizeController::class, 'count_by_prize']);
|
|
|
+});
|
|
|
+Route::middleware(['auth:sanctum', 'ability:Checkin,Admin'])->group(function () {
|
|
|
+ // CheckIn
|
|
|
+ Route::post('/check_in/update', [CheckInController::class, 'update']);
|
|
|
+ Route::post('/check_in/check_out', [CheckInController::class, 'check_out']);
|
|
|
+ Route::post('/checkin/show', [CheckInController::class, 'show']);
|
|
|
+ Route::post('/checkin/export', [CheckInController::class, 'export']);
|
|
|
+
|
|
|
// Recipients
|
|
|
Route::post('/recipient/claim', [RecipientsController::class, 'claim']);
|
|
|
Route::post('/recipient/isClaimed', [RecipientsController::class, 'isClaimed']);
|