-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.php
More file actions
95 lines (84 loc) · 2.58 KB
/
Copy pathroutes.php
File metadata and controls
95 lines (84 loc) · 2.58 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
$app->notFound(function () use ($app) {
$app->render('404.html');
});
// Default route
$app->get("/", function () use ($app){
include( "view/index.php" );
});
// Login stuff
$app->get("/login/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/login.php" );
});
// Logout
$app->get("/logout/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/logout.php" );
});
// Forgot password
$app->get("/forgotpassword/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/forgotpassword.php" );
});
$app->post("/forgotpassword/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/forgotpassword.php" );
});
// Management
$app->get("/manage/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/manage.php" );
});
$app->get("/manage/action/:action/:id/", function($action, $id) use ($app) {
global $cookie_name, $cookie_time;
include( "view/manage.php" );
});
$app->post("/manage/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/manage.php" );
});
// Management
$app->get("/account/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/account.php" );
});
$app->post("/account/", function() use ($app) {
global $cookie_name, $cookie_time;
include( "view/account.php" );
});
$app->get("/char/:name/", function($name) use ($app) {
include("view/char.php");
});
$app->get("/char/:name/share/:shareID", function($name, $shareID) use ($app) {
include("view/charShare.php");
});
$app->get("/char/:name/:pageType/", function($name, $pageType) use ($app) {
include("view/char.php");
});
$app->get("/shares/", function() use ($app) {
global $cookie_name, $cookie_time;
include("view/shares.php");
});
$app->post("/shares/", function() use ($app) {
global $cookie_name, $cookie_time;
include("view/shares.php");
});
$app->get("/shares/action/:action/:id/", function($action, $id) use ($app) {
global $cookie_name, $cookie_time;
include( "view/shares.php" );
});
$app->get("/resetpassword/:hash/", function($hash) use ($app) {
include( "view/resetpassword.php" );
});
$app->post("/resetpassword/", function() use ($app) {
include( "view/resetpassword.php" );
});
// EveInfo
$app->get("/item/:id/", function($id) use ($app) {
global $oracleURL;
include ("view/item.php" );
});
$app->get("/ccp/callback", function () use ($app) {
include ("view/ccp-callback.php");
});