forked from phalcon-orphanage/store-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.php
37 lines (32 loc) · 649 Bytes
/
app.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
<?php
/**
* Add your routes here
*/
$app->get('/', function () use ($app) {
echo $app->render('index/index');
});
/**
* Add your routes here
*/
$app->get('/thanks', function () use ($app) {
echo $app->render('index/thanks');
});
/**
* Add your routes here
*/
$app->get('/success', function () use ($app) {
echo $app->render('index/thanks');
});
/**
* Add your routes here
*/
$app->get('/cancel', function () use ($app) {
echo $app->render('index/cancel');
});
/**
* Not found handler
*/
$app->notFound(function () use ($app) {
$app->response->setStatusCode(404, "Not Found")->sendHeaders();
echo $app->render('errors/404');
});