forked from orgmanager/orgmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.php
executable file
·46 lines (38 loc) · 2.22 KB
/
web.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
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::view('/', 'landing')->middleware('guest')->name('landing');
Route::get('dashboard', 'DashboardController@index')->name('dashboard');
Route::get('org/{org}', 'OrgController@index')->name('org');
Route::post('org/{org}/password', 'OrgController@password')->name('org.password');
Route::delete('org/{org}/password', 'OrgController@removePassword')->name('org.password');
Route::put('org/{org}', 'OrgController@update')->name('org.update');
Route::delete('org/{org}', 'OrgController@delete')->name('org.delete');
Route::post('org/{org}/message', 'OrgController@message')->name('org.message');
Route::get('org/{org}/teams', 'TeamController@index')->name('org.teams');
Route::post('org/{org}/teams', 'TeamController@syncTeams')->name('org.teams.sync');
Route::put('org/{org}/teams', 'TeamController@setTeam')->name('org.teams.set');
Route::delete('org/{org}/teams', 'TeamController@deleteTeams')->name('org.teams.delete');
Route::post('sync', 'GithubController@syncOrgs')->name('sync');
Route::post('sync/{org}', 'GithubController@syncOrg')->name('sync.org');
Route::get('join/{org}', 'JoinController@index')->name('join');
Route::post('join/{org}', 'JoinController@inviteUser')->name('join.post');
Route::get('join/{org}/callback', 'JoinController@callback')->name('join.callback');
Route::get('o/{name}', 'JoinController@redirect')->name('redirect');
Route::view('developer', 'developer')->name('developer');
Route::view('token', 'token')->middleware('auth')->name('token');
Route::delete('token', 'DeveloperController@deleteToken')->name('token.delete');
// Auth routes
Route::get('login', 'LoginController@authorizeUser')->name('login');
Route::get('callback', 'LoginController@loginUser')->name('callback');
Route::post('logout', 'LoginController@logoutUser')->name('logout');
// Autojoiner
Route::post('autojoiner', 'AutoJoinerController@index')->name('autojoiner');