You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
875B

  1. <?php
  2. use App\Util\RouteHelper;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | API Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register API routes for your application. These
  10. | routes are loaded by the RouteServiceProvider and all of them will
  11. | be assigned to the "api" middleware group. Make something great!
  12. |
  13. */
  14. RouteHelper::post('/login', App\Http\Controllers\Web\Auth\LoginController::class);
  15. RouteHelper::post('/logout', App\Http\Controllers\Web\Auth\LogoutController::class);
  16. RouteHelper::get('/qr-service/get-ticket', App\Http\Controllers\Web\QRService\CreateTicketController::class);
  17. Route::middleware('auth:sanctum')->group(function () {
  18. RouteHelper::get('/me', App\Http\Controllers\Web\Auth\MeController::class);
  19. });