mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Route::middleware('auth:api')->get('/user', function (Request $request) {
|
|
// return $request->user();
|
|
//});
|
|
|
|
Route::post('register', 'AuthController@register');
|
|
Route::post('login', 'AuthController@login');
|
|
Route::post('recover', 'AuthController@recover');
|
|
|
|
Route::group(['middleware' => ['jwt.auth']], function() {
|
|
Route::get('logout', 'AuthController@logout');
|
|
Route::get('test', function(){
|
|
return response()->json(['foo'=>'bar']);
|
|
});
|
|
|
|
/*Delivery-Info in profile menu*/
|
|
Route::get('/deliveryinfo/{com_id}','DeliveryinfoController@show');
|
|
Route::post('/deliveryinfo', 'DeliveryinfoController@store');
|
|
Route::put('/deliveryinfo/{com_id}', 'DeliveryinfoController@update');
|
|
Route::delete('/deliveryinfo/{com_id}', 'DeliveryinfoController@destroy');
|
|
});
|