-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
39 lines (26 loc) · 878 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
<?php
require_once 'router.php';
// ##################################################
// ##################################################
// ##################################################
// Static GET
// In the URL -> http://localhost
// The output -> Index
// homepage
get('/', 'views/index.php');
// publish page
get('/publishpage', 'views/publish.php');
// publish
post('/publish','publish.php');
// keys page
get('/allkeys','views/keys.php');
// relayspage
get('/relayspage', 'views/relays.php');
// ##################################################
// ##################################################
// ##################################################
// any can be used for GETs or POSTs
// For GET or POST
// The 404.php which is inside the views folder will be called
// The 404.php has access to $_GET and $_POST
any('/404','views/404.php');