-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
77 lines (57 loc) · 3.24 KB
/
routes.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
67
68
69
70
71
72
73
74
75
76
77
<?php
// Auth
$router->get('/', 'controllers/auth/home.php');
$router->get('/login', 'controllers/auth/index.php');
$router->post('/login', 'controllers/auth/login.php');
$router->post('/logout', 'controllers/auth/logout.php');
// Register
$router->get('/register', 'controllers/register/index.php');
$router->post('/register', 'controllers/register/store.php');
//User Dashboard
$router->get('/user', 'controllers/dashboard/user.php');
$router->get('/dashboard', 'controllers/dashboard/admin.php');
// User My Reports
$router->get('/reports', 'controllers/user-reports/create.php');
$router->post('/reports', 'controllers/user-reports/store.php');
$router->get('/my-reports', 'controllers/user-reports/index.php');
$router->post('/my-reports', 'controllers/user-reports/index.php');
// Incident Reports
$router->get('/pending', 'controllers/incident/pending.php');
$router->get('/ongoing', 'controllers/incident/ongoing.php');
$router->get('/completed', 'controllers/incident/completed.php');
$router->get('/incident', 'controllers/incident/edit.php');
$router->put('/incident', 'controllers/incident/update.php');
// Incidents Types
$router->get('/incident-types', 'controllers/incident-types/index.php');
$router->get('/incident-type', 'controllers/incident-types/edit.php');
$router->get('/incident-types/create', 'controllers/incident-types/create.php');
$router->post('/incident-types', 'controllers/incident-types/store.php');
$router->put('/incident-type', 'controllers/incident-types/update.php');
$router->delete('/incident-type', 'controllers/incident-types/destroy.php');
// Respondent Type
$router->get('/respondent-types', 'controllers/respondent-types/index.php');
$router->get('/respondent-type', 'controllers/respondent-types/edit.php');
$router->get('/respondent-types/create', 'controllers/respondent-types/create.php');
$router->post('/respondent-types', 'controllers/respondent-types/store.php');
$router->put('/respondent-type', 'controllers/respondent-types/update.php');
$router->delete('/respondent-type', 'controllers/respondent-types/destroy.php');
// Respondent
$router->get('/respondents', 'controllers/respondents/index.php');
$router->get('/respondent', 'controllers/respondents/edit.php');
$router->get('/respondents/create', 'controllers/respondents/create.php');
$router->post('/respondents', 'controllers/respondents/store.php');
$router->put('/respondent', 'controllers/respondents/update.php');
$router->delete('/respondent', 'controllers/respondents/destroy.php');
// Hotlines
$router->get('/hotlines', 'controllers/hotline/index.php');
$router->get('/hotline', 'controllers/hotline/edit.php');
$router->get('/hotlines/create', 'controllers/hotline/create.php');
$router->post('/hotlines', 'controllers/hotline/store.php');
$router->put('/hotline', 'controllers/hotline/update.php');
$router->delete('/hotline', 'controllers/hotline/destroy.php');
$router->get('/dispatchers', 'controllers/dispatcher/index.php');
$router->get('/dispatcher', 'controllers/dispatcher/edit.php');
$router->get('/dispatchers/create', 'controllers/dispatcher/create.php');
$router->post('/dispatchers', 'controllers/dispatcher/store.php');
$router->put('/dispatcher', 'controllers/dispatcher/update.php');
$router->delete('/dispatcher', 'controllers/dispatcher/destroy.php');