- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
Latest commit
37 lines (24 loc) · 437 Bytes
/
Copy pathindex.php
File metadata and controls
37 lines (24 loc) · 437 Bytes
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
<?php
require'inc/Slim-2.x/Slim/Slim.php';
\Slim\Slim::registerAutoloader();
$app = new \Slim\Slim();
// GET route
$app->get(
'/',
function () {
require_once("view/index.php");
}
);
$app->get(
'/videos',
function () {
require_once("view/videos.php");
}
);
$app->get(
'/shop',
function () {
require_once("view/shop.php");
}
);
$app->run();