-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
31 lines (17 loc) · 1.03 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
<?php
$router -> get('/', 'controllers/index.php');
$router -> get('/about', 'controllers/about.php');
$router -> get('/mission', 'controllers/mission.php');
$router -> get('/contact', 'controllers/contact.php');
$router -> get('/notes', 'controllers/notes/index.php')->only('auth');
$router -> get('/notes/create', 'controllers/notes/create.php');
$router -> post('/notes', 'controllers/notes/store.php');
$router -> get('/note/edit', 'controllers/notes/edit.php');
$router -> patch('/note', 'controllers/notes/update.php');
$router -> get('/note', 'controllers/notes/show.php');
$router -> delete('/note', 'controllers/notes/destroy.php');
$router -> get('/register', 'controllers/registration/create.php')->only('guest');
$router -> post('/register', 'controllers/registration/store.php')->only('guest');
$router -> get('/login', 'controllers/sessions/create.php')->only('guest');
$router -> Post('/sessions', 'controllers/sessions/store.php')->only('guest');
$router -> delete('/sessions', 'controllers/sessions/logout.php')->only('auth');