forked from MilliTest/PhoenixWebPHP1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
73 lines (72 loc) · 1.78 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
if(mb_strtolower(trim($_SERVER['REQUEST_URI'], "/")) === "routes.php") exit("Direct access to this file is not allowed.");
$routes['/contact'] = [
"controller" => "Home",
"action" => "Contact",
"webservice" => false
];
$routes['/about'] = [
"controller" => "Home",
"action" => "About",
"webservice" => false
];
$routes['/legal'] = [
"controller" => "Legal",
"action" => "Index",
"webservice" => false
];
$routes['/legal/terms'] = [
"controller" => "Legal",
"action" => "Terms",
"webservice" => false
];
$routes['/legal/privacy'] = [
"controller" => "Legal",
"action" => "Privacy",
"webservice" => false
];
$routes['/shop'] = [
"controller" => "Shop",
"action" => "Index",
"webservice" => false
];
$routes['/shop/categories'] = [
"controller" => "Shop",
"action" => "Redirect",
"webservice" => false
];
$routes['/shop/categories/[A-Za-z\-]+'] = [
"controller" => "Shop",
"action" => "Category",
"webservice" => false
];
$routes['/shop/collections'] = [
"controller" => "Shop",
"action" => "Redirect",
"webservice" => false
];
$routes['/shop/collections/(:alpha)'] = [
"controller" => "Shop",
"action" => "Collection",
"webservice" => false
];
$routes['/shop/details/(:num)'] = [
"controller" => "Shop",
"action" => "Details",
"webservice" => false
];
$routes['/shop/cart'] = [
"controller" => "Shop",
"action" => "Cart",
"webservice" => false
];
$routes['/webservices/add'] = [
"controller" => "WebApi",
"action" => "Add",
"webservice" => true
];
$routes['/webservices/remove'] = [
"controller" => "WebApi",
"action" => "Remove",
"webservice" => true
];