<?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::group(['namespace' => 'api'], function () {
//     Route::post('/customer_login', 'UserController@login');
// });

// Route::post('logout', 'api\UserController@logout');
// Route::post('user', 'api\UserController@user');
// Route::post('status.check', 'api\UserController@get_status');
// Route::post('menus.reload', 'api\UserController@get_menus');

Route::post('login', 'APILoginController@login');

// users is a route protected by jwt
Route::get('user', 'APIAPPController@user');
Route::get('status', 'APIAPPController@get_status');
Route::get('get_menus', 'APIAPPController@menus');
Route::post('logout', 'APIAPPController@logout');