-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
43 lines (31 loc) · 989 Bytes
/
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
36
37
38
39
40
41
42
43
<?php
require "./src/router/router.php";
$router = new Router();
$router->addRoute('GET', '/', function() {
include('./src/page/home.php');
});
$router->addRoute('GET', '/services', function() {
include('./src/page/service.php');
});
$router->addRoute('GET', '/about', function() {
include('./src/page/about.php');
});
$router->addRoute('GET', '/border', function() {
include('./src/service/border.php');
});
$router->addRoute('GET', '/flexbox', function() {
include('./src/service/flexbox.php');
});
$router->addRoute('GET', '/login', function() {
include('./src/service/login.php');
});
// $router->addRoute('GET', '/conn', function() {
// include('./src/connect.php');
// });
$router->addRoute('POST', '/loginverification', function() {
include('./src/post/login.php');
});
$router->addRoute('POST', '/loginupdate', function() {
include('./src/post/loginUpdate.php');
});
$router->run($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);