mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2026-01-17 16:03:28 -08:00
Initial commit
This commit is contained in:
19
app/config/autoload.php
Normal file
19
app/config/autoload.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Asatru PHP - autoload configuration file
|
||||
|
||||
Add here all files you want to be autoloaded
|
||||
|
||||
Schema:
|
||||
<path>
|
||||
Example:
|
||||
/helper/myscript.php
|
||||
Explanation:
|
||||
Will autoload /helper/myscript.php relative
|
||||
to the /app directory
|
||||
*/
|
||||
|
||||
return [
|
||||
'/helper/TestHelper.php'
|
||||
];
|
||||
18
app/config/events.php
Normal file
18
app/config/events.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Asatru PHP - events configuration file
|
||||
|
||||
Add here all your event handlers
|
||||
|
||||
Schema:
|
||||
<event name> = <event class>@<event handler>
|
||||
Example:
|
||||
'my_event' => 'EventHandler@myEvent'
|
||||
Explanation:
|
||||
Will register the event handler with the event
|
||||
*/
|
||||
|
||||
return [
|
||||
'my_event' => 'EventHandler@myEvent'
|
||||
];
|
||||
26
app/config/routes.php
Normal file
26
app/config/routes.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Asatru PHP - routes configuration file
|
||||
|
||||
Add here all your needed routes.
|
||||
|
||||
Schema:
|
||||
[<url>, <method>, controller_file@controller_method]
|
||||
Example:
|
||||
[/my/route, get, mycontroller@index]
|
||||
[/my/route/with/{param1}/and/{param2}, get, mycontroller@another]
|
||||
Explanation:
|
||||
Will call index() in app\controller\mycontroller.php if request is 'get'
|
||||
Every route with $ prefix is a special route
|
||||
*/
|
||||
|
||||
return [
|
||||
array('/', 'GET', 'index@index'),
|
||||
array('/generator', 'GET', 'index@generator'),
|
||||
array('/api/query/app', 'GET', 'api@queryAppInfo'),
|
||||
array('/api/query/server', 'GET', 'api@queryServerInfo'),
|
||||
array('/api/query/user', 'GET', 'api@queryUserInfo'),
|
||||
array('/api/resource/query', 'GET', 'api@queryResource'),
|
||||
array('$404', 'ANY', 'error404@index')
|
||||
];
|
||||
Reference in New Issue
Block a user