v0.1.0
This commit is contained in:
12
frontend/resources/routes/web.php
Normal file
12
frontend/resources/routes/web.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
use ProVM\Crypto\Common\Controller\Home;
|
||||
|
||||
$files = new DirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . 'web');
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include $file->getRealPath();
|
||||
}
|
||||
|
||||
$app->get('/', Home::class);
|
11
frontend/resources/routes/web/coins.php
Normal file
11
frontend/resources/routes/web/coins.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
use ProVM\Crypto\Common\Controller\Coins;
|
||||
|
||||
$app->group('/coins', function($app) {
|
||||
$app->get('/add', [Coins::class, 'add']);
|
||||
$app->get('[/]', Coins::class);
|
||||
});
|
||||
|
||||
$app->group('/coin/{coin_id}', function($app) {
|
||||
$app->get('[/]', [Coins::class, 'get']);
|
||||
});
|
Reference in New Issue
Block a user