このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/routes/api.php

31 行
1.2 KiB
PHP
Raw 通常表示 履歴

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-08-07 14:05:50 +09:00
$api->post('/auth/sendreset', 'AuthController@SendReset');
$api->get('/auth/confirmreset/{token}', 'AuthController@ConfirmReset');
$api->post('/auth/passwordreset', 'AuthController@PasswordReset');
$api->post('/auth/checkauth', 'AuthController@checkAuth');
2018-02-09 01:17:45 +09:00
});
});