Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
95 lines (77 loc) · 2.11 KB
/
Copy pathindex.php
File metadata and controls
95 lines (77 loc) · 2.11 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
require __DIR__ . '/vendor/autoload.php';
date_default_timezone_set('America/Cuiaba');
session_start();
use Source\core\Router;
$router = new Router();
/**
* WEB
* Web
*/
$router->group(null);
$router->get("/", "Web:home");
$router->get("/contact", "Web:contact");
$router->get("/about", "Web:about");
/**
* ORDER
* Order
*/
$router->group('/order');
$router->get("/", "WebOrder:home");
$router->get("/login", "WebOrder:login");
$router->get("/login/register", "WebOrder:register");
$router->get("/login/recover", "WebOrder:recover");
$router->get("/address", "WebOrder:address");
$router->get("/payment", "WebOrder:payment");
$router->get("/confirmation", "WebOrder:confirmation");
$router->post("/showorder", "WebOrder:showOrder");
$router->post("/verifyidentification", "WebOrder:checkAccessIdentification");
/**
* CART
* WebCart
*/
$router->group('/cart');
$router->post("/", "WebCart:cart");
$router->post("/add/{id}", "WebCart:add");
$router->post("/remove/{id}", "WebCart:remove");
$router->post("/clear", "WebCart:clear");
$router->post("/finishCart", "WebCart:finishCart");
/**
* IDENTIFICATION
* Identification
*/
$router->group('/identification');
$router->post("/showidentification", "WebIdentification:showIdentification");
$router->post("/signin", "WebIdentification:signIn");
$router->post("/signup", "WebIdentification:signUp");
$router->post("/recover", "WebIdentification:forgetLogin");
/**
* ADDRESS
* Address
*/
$router->group('/address');
$router->post("/showaddress", "WebAddress:showSession");
$router->post("/add", "WebAddress:add");
/**
* PAYMENT
* Payment
*/
$router->group('/payment');
$router->post("/session", "WebPayment:showSession");
$router->post("/createsession", "WebPayment:initSessionPay");
$router->post("/billet", "WebPayment:withBillet");
$router->post("/onlinedebit", "WebPayment:withOnlineDebt");
$router->post("/creditcard", "WebPayment:withCreditCard");
/**
* CONFIRMATION
* Confirmation
*/
$router->group('/confirmation');
$router->post("/clear", "WebConfirmation:clearOrder");
/**
* DISPATCH
*/
$router->dispatch();
if ($router->error()) {
echo $router->error();
}