Implement download entity and related stuff. Will build things like user quota on...
[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 ];