initial commit

This commit is contained in:
Milos Stojanovic
2019-06-13 18:52:40 +02:00
commit 261607e1d3
160 changed files with 41704 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
return [
[
'route' => [
'GET', '/', '\Filegator\Controllers\ViewController@index',
],
'roles' => [
'guest',
],
'permissions' => [
],
],
[
'route' => [
'POST', '/login', '\Filegator\Controllers\AuthController@login',
],
'roles' => [
'guest',
],
'permissions' => [
],
],
[
'route' => [
'GET', '/noguests', 'ProtectedController@protectedMethod',
],
'roles' => [
'user', 'admin',
],
'permissions' => [
],
],
[
'route' => [
'GET', '/adminonly', 'AdminController@adminOnlyMethod',
],
'roles' => [
'admin',
],
'permissions' => [
],
],
];