-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.php
More file actions
36 lines (23 loc) · 1.29 KB
/
routes.php
File metadata and controls
36 lines (23 loc) · 1.29 KB
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
<?php
$router->get('/', 'index.php');
$router->get('/about', 'about.php');
$router->get('/contact', 'contact.php');
$router->post('/contact', 'send-message.php');
$router->get('/profile', 'profile/index.php')->only('auth');
$router->get('/profile/edit', 'profile/edit.php')->only('auth');
$router->patch('/profile/edit', 'profile/update.php')->only('auth');
$router->get('/notes', 'notes/index.php')->only('auth');
$router->get('/note', 'notes/show.php')->only('auth');;
$router->delete('/note', 'notes/destroy.php')->only('auth');
$router->get('/note/edit', 'notes/edit.php')->only('auth');
$router->patch('/note/edit', 'notes/update.php')->only('auth');
$router->get('/notes/create', 'notes/create.php')->only('auth');
$router->post('/notes/create', 'notes/store.php')->only('auth');
$router->get('/register', 'registration/create.php')->only('guest');
$router->post('/register', 'registration/store.php')->only('guest');
$router->get('/login', 'session/login.php')->only('guest');
$router->post('/session', 'session/store.php')->only('guest');
$router->delete('/session', 'session/destroy.php')->only('auth');
$router->get('/admin', 'Admin/index.php')->only('admin');
$router->get('/message', 'Admin/show-message.php')->only('admin');
$router->delete('/message', 'Admin/destroy-message.php')->only('admin');