ldc-mesbr-app/routes/api.php

25 lines
989 B
PHP

<?php
/*
|--------------------------------------------------------------------------
| 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!
|
*/
use Illuminate\Support\Facades\Route;
Route::prefix('v1')
->name('api.v1.')
->group(function () {
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');
Route::resource('customer', 'Api\v1\CustomerController');
Route::get('/mur', 'Api\v1\MurController@show');
Route::get('/coupons/print', 'Api\v1\CouponsController@print');
});