Popular downloads stuff.
[rock.divinelegy.git] / config / Routes.php
1 <?php
2
3 return [
4 '/simfiles' => [
5 'methods' => ['GET'],
6 'controller' => 'Simfile',
7 'action' => 'list'
8 ],
9
10 '/simfiles/latest/simfile' => [
11 'methods' => ['GET'],
12 'controller' => 'Simfile',
13 'action' => 'latestSimfile'
14 ],
15
16 '/simfiles/latest/pack' => [
17 'methods' => ['GET'],
18 'controller' => 'Simfile',
19 'action' => 'latestPack'
20 ],
21
22 '/simfiles/popular' => [
23 'methods' => ['GET'],
24 'controller' => 'Simfile',
25 'action' => 'popular'
26 ],
27
28 '/simfiles/upload' => [
29 'methods' => ['POST'],
30 'controller' => 'Simfile',
31 'action' => 'upload'
32 ],
33
34 '/simfiles/argTest/:testarg' => [
35 'methods' => ['GET'],
36 'controller' => 'Simfile',
37 'action' => 'test'
38 ],
39
40 '/user/auth' => [
41 'method' => ['GET'],
42 'controller' => 'UserAuth'
43 ],
44
45 '/user/:facebookId' => [
46 'method' => ['GET'],
47 'controller' => 'User',
48 'action' => 'getUser'
49 ],
50
51 '/files/banner/:hash' => [
52 'method' => ['GET'],
53 'controller' => 'File',
54 'action' => 'serveBanner'
55 ],
56
57 '/files/pack/:hash' => [
58 'method' => ['GET'],
59 'controller' => 'File',
60 'action' => 'serveSimfileOrPack'
61 ],
62
63 '/files/simfile/:hash' => [
64 'method' => ['GET'],
65 'controller' => 'File',
66 'action' => 'serveSimfileOrPack'
67 ]
68 ];