2018-01-24 00:25:04 +09:00
|
|
|
<?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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-02-09 01:17:45 +09:00
|
|
|
$api = app('Dingo\Api\Routing\Router');
|
|
|
|
|
|
|
|
$api->version('v1', function ($api) {
|
|
|
|
$api->group(['namespace' => 'App\Http\Controllers'], function ($api) {
|
2018-04-18 16:31:46 +09:00
|
|
|
$api->post('/auth/checkself', 'AuthController@checkSelf');
|
2018-04-18 15:51:45 +09:00
|
|
|
$api->post('/auth/getpermissions', 'AuthController@getPerms');
|
2018-02-09 01:17:45 +09:00
|
|
|
$api->post('/auth/login', 'AuthController@login');
|
|
|
|
$api->post('/auth/register', 'AuthController@register');
|
2018-02-13 21:29:58 +09:00
|
|
|
$api->post('/auth/recover', 'AuthController@recover');
|
2018-04-11 18:37:06 +09:00
|
|
|
$api->post('/auth/checkauth', 'AuthController@checkAuth');
|
2018-02-09 01:17:45 +09:00
|
|
|
});
|
|
|
|
});
|