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