text4u
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

api.php 1023B

1234567891011121314151617181920212223242526
  1. <?php
  2. use App\Http\Controllers\EnquiryController;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Support\Facades\Route;
  5. use App\Http\Controllers\TwilioController;
  6. /*
  7. |--------------------------------------------------------------------------
  8. | API Routes
  9. |--------------------------------------------------------------------------
  10. |
  11. | Here is where you can register API routes for your application. These
  12. | routes are loaded by the RouteServiceProvider and all of them will
  13. | be assigned to the "api" middleware group. Make something great!
  14. |
  15. */
  16. // Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
  17. // return $request->user();
  18. // });
  19. Route::resource('/enquiry', EnquiryController::class);
  20. Route::post('/send-whatsapp', [TwilioController::class, 'sendWhatsAppMessage'])->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]);
  21. Route::post('/callback-whatsapp', [TwilioController::class, 'handleWhatsAppCallback'])->withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class]);