forked from Catfeeds/vmbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.php
66 lines (60 loc) · 1.81 KB
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?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();
//});
//
//$api = app('Dingo\Api\Routing\Router');
//
//$api->version('v1', ['namespace' => 'App\Http\Controllers\Api\V1'], function ($api) {
// // test
// $api->get('test', [
// 'as' => 'test',
// 'uses' => 'AuthController@test',
// ]);
// // Auth
// // signin
// $api->post('auth/login', [
// 'as' => 'auth.login',
// 'uses' => 'AuthController@login',
// ]);
// $api->post('auth/logout', [
// 'as' => 'auth.logout',
// 'uses' => 'AuthController@logout',
// ]);
// $api->post('auth/code', [
// 'as' => 'auth.code',
// 'uses' => 'AuthController@getCode',
// ]);
// // signup
// $api->post('auth/register', [
// 'as' => 'auth.register',
// 'uses' => 'AuthController@register',
// ]);
// $api->post('auth/password', [
// 'as' => 'auth.reset',
// 'uses' => 'AuthController@setPassword',
// ]);
// $api->post('auth/check_password', [
// 'as' => 'auth.check_password',
// 'uses' => 'AuthController@check_password',
// ]);
// $api->post('auth/reset', [
// 'as' => 'auth.reset',
// 'uses' => 'AuthController@reset',
// ]);
// $api->get('auth/is_login', [
// 'as' => 'auth.is_login',
// 'uses' => 'AuthController@isLogin',
// ]);
//});