-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
35 lines (35 loc) · 1.08 KB
/
index.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
<?php
include_once 'Request.php';
include_once 'Router.php';
$router = new Router(new Request);
$router->get('/', function() {
include('./html/homepage.html');
});
$router->get('/login', function() {
include('./html/login.html');
});
$router->post('/login', function() {
include('./php/login.php');
});
$router->get('/registration', function() {
include('./html/registration.html');
});
$router->get('/registrationcanteen', function() {
include('./html/registrationcanteen.html');
});
$router->post('/registrationcanteen', function() {
include('./php/registercanteen.php');
});
$router->get('/registrationuser', function() {
include('./html/registrationuser.html');
});
$router->post('/registrationuser', function() {
include('./php/registeruser.php');
});
$router->get('/userhomepage', function() {
include('./html/userhomepage.php');
});
$router->get('/canteenhomepage', function() {
include('./html/canteenhomepage.php');
});
?>