forked from orgmanager/orgmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.php
executable file
·26 lines (24 loc) · 1019 Bytes
/
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
<?php
/*
|--------------------------------------------------------------------------
| 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::any('', 'HomeController@index');
Route::get('user', 'UserController@index');
Route::get('token/regenerate', 'UserController@token');
Route::get('user/orgs', 'UserController@orgs');
Route::get('org', 'HomeController@org');
Route::get('org/{org?}', 'OrgController@index');
Route::post('org/{org?}', 'OrgController@password');
Route::put('org/{org?}', 'OrgController@update');
Route::delete('org/{org?}', 'OrgController@delete');
Route::post('join/{org?}', 'OrgController@join');
Route::get('stats', 'HomeController@stats');
});