ldc-mesbr-app/routes/api.php

26 lines
995 B
PHP
Raw Permalink Normal View History

2019-01-15 14:17:15 +01:00
<?php
/*
2025-04-03 09:30:16 +02:00
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
2019-01-15 14:17:15 +01:00
*/
use Illuminate\Support\Facades\Route;
2021-04-20 11:16:34 +02:00
Route::prefix('v1')
->name('api.v1.')
2026-10-28 12:27:46 +01:00
->group(function (): void {
2021-08-16 12:27:07 +02:00
Route::get('/customer/mur', 'Api\v1\CustomerController@mur');
Route::get('/customer/basket', 'Api\v1\CustomerController@basket');
Route::get('/customer/basket/update', 'Api\v1\BasketController@updateBasket')->name('basket.update');
2021-08-16 12:45:22 +02:00
Route::resource('customer', 'Api\v1\CustomerController');
2021-08-05 12:06:24 +02:00
Route::get('/mur', 'Api\v1\MurController@show');
2021-08-16 12:27:07 +02:00
Route::get('/coupons/print', 'Api\v1\CouponsController@print');
2021-04-20 11:16:34 +02:00
});