-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRoutes.php
79 lines (76 loc) · 1.92 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
74
75
76
77
78
79
<?php
Route::set('index.php', function() {
Index::CreateView('index');
});
Route::set('index', function() {
Index::CreateView('index');
});
Route::set('login', function() {
LoginUser::CreateView('login');
});
Route::set('logout', function() {
new Logoutor;
new Redirector('login');
});
Route::set('product', function() {
Products::CreateView('products');
});
Route::set('new-user', function() {
NewUser::CreateView('newUser');
});
Route::set('admin', function() {
Admin::CreateView('admin');
});
Route::set('edit-categories', function() {
Admin::CreateView('editCategories');
});
Route::set('edit-products', function() {
Admin::CreateView('editProducts');
});
Route::set('edit-news', function() {
Admin::CreateView('editNews');
});
Route::set('edit-company', function() {
Admin::CreateView('editCompanyInfo');
});
Route::set('chat', function() {
Controller::CreateChat('chat', 'html');
});
Route::set('botman', function() {
Controller::CreateChat('botman', 'php');
});
Route::set('checkout', function() {
Controller::CreateView('checkout');
});
Route::set('cartJS', function() {
Controller::loadJS('cart');
});
Route::set('handle-cart-ep', function() {
Controller::loadCartHandler('handle-cart-ep');
});
Route::set('profile', function() {
Profile::CreateView('profile');
});
Route::set('edit-profile', function() {
Admin::CreateView('editProfile');
});
Route::set('new-product', function() {
Admin::CreateView('newProduct');
});
Route::set('checkout-success', function() {
Controller::CreateView('checkoutSuccess');
});
Route::set('checkout-fail', function() {
Controller::CreateView('checkoutFail');
});
Route::set('orders', function() {
Admin::CreateView('orders');
});
Route::set('order-history', function() {
Controller::CreateView('orderHistory');
});
Route::set('404', function() {
Admin::CreateView('404');
});
// Always at the end!!!
Route::notValidRoute();