-
Notifications
You must be signed in to change notification settings - Fork 1
/
Route.php
executable file
·39 lines (28 loc) · 1.29 KB
/
Route.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
<?php
use App\Systems\Router;
use App\Systems\Request;
//////////////////////////////////////////////////////
/////////// G E T R O U T E S /////////////////
////////////////////////////////////////////////////
Router::get('/','HomeController@index');
Router::get('/login','HomeController@login');
Router::get('/register','HomeController@register');
Router::get('/api/checkpoint','HomeController@getResponse');
Router::get('/docs','HomeController@docs');
//Forgot Password
Router::get('/forgotpassword','HomeController@forgotPassword');
//Profile Page
Router::get('/dashboard', 'DashboardController@home');
Router::get('/updateprofile/{id}','DashboardController@getSingleProfile');
Router::get('/deleteprofile/{id}','DashboardController@deleteProfile');
Router::get('/logout', 'DashboardController@logout');
//////////////////////////////////////////////////////
/////////// P O S T R O U T E S /////////////////
////////////////////////////////////////////////////
Router::post('/login','LoginController@login');
Router::post('/register','RegisterController@register');
Router::post('/savedata','RegisterController@saveData');
//Forgot Password
Router::post('/forgotpassword','HomeController@postForgotPassword');
//Profile Page
Router::post('/updateprofile','DashboardController@updateProfile');