mirror of
https://github.com/typemill/typemill.git
synced 2025-08-06 14:16:46 +02:00
Version 1.0.0
This commit is contained in:
7
system/Routes/api.php
Normal file
7
system/Routes/api.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
use App\Controllers\ApiController;
|
||||
|
||||
$app->get('/api', ApiController::class . ':index' )->setName('api.index');
|
||||
*/
|
||||
?>
|
13
system/Routes/web.php
Normal file
13
system/Routes/web.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
use System\Controllers\PageController;
|
||||
use System\Controllers\SetupController;
|
||||
|
||||
if(!isset($userSettings))
|
||||
{
|
||||
$app->get('/setup', SetupController::class . ':setup')->setName('setup');
|
||||
$app->post('/setup', SetupController::class . ':save')->setName('save');
|
||||
}
|
||||
|
||||
$app->get('/[{params:.*}]', PageController::class . ':index');
|
||||
?>
|
Reference in New Issue
Block a user