Sfoglia il codice sorgente

修改來賓報到無須登入權限

maa3520 1 anno fa
parent
commit
88537a38de
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      routes/api.php

+ 2 - 2
routes/api.php

@@ -88,7 +88,7 @@ Route::post('/index', [TemplateController::class, 'index']);
 
 Route::middleware('auth:sanctum')->group(function () {
     Route::resource('guest', GuestRegistrationController::class)->only([
-        'store', 'update', 'destroy'
+        'update', 'destroy'
     ]);
 });
 
@@ -149,7 +149,7 @@ Route::post('/activity/show', [ActivityController::class, 'show']);
 
 Route::get('/guest/lookup', [CheckInController::class, 'searchByName']);
 Route::resource('guest', GuestRegistrationController::class)->only([
-    'index', 'show'
+    'index', 'show','store'
 ]);