b79aafdd9160b2396a4e06b243f03cc083b855b4
[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 //TODO: test controller, delete later
11 '/downloadtest' => [
12 'methods' => ['GET'],
13 'controller' => 'downloadTest'
14 ],
15
16 '/simfiles/upload' => [
17 'methods' => ['POST'],
18 'controller' => 'Simfile',
19 'action' => 'upload'
20 ],
21
22 '/simfiles/argTest/:testarg' => [
23 'methods' => ['GET'],
24 'controller' => 'Simfile',
25 'action' => 'test'
26 ],
27
28 '/user/auth' => [
29 'method' => ['GET'],
30 'controller' => 'UserAuth'
31 ],
32
33 '/user/:facebookId' => [
34 'method' => ['GET'],
35 'controller' => 'User',
36 'action' => 'getUser'
37 ],
38
39 '/files/banner/:hash' => [
40 'method' => ['GET'],
41 'controller' => 'File',
42 'action' => 'serveBanner'
43 ],
44
45 '/files/pack/:hash' => [
46 'method' => ['GET'],
47 'controller' => 'File',
48 'action' => 'serveSimfileOrPack'
49 ],
50
51 '/files/simfile/:hash' => [
52 'method' => ['GET'],
53 'controller' => 'File',
54 'action' => 'serveSimfileOrPack'
55 ]
56 ];