Update
This commit is contained in:
@ -1,9 +1,16 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Controller\API;
|
||||
|
||||
include_once 'currencies.php';
|
||||
include_once 'values.php';
|
||||
include_once 'sources.php';
|
||||
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [
|
||||
__DIR__,
|
||||
'api'
|
||||
]));
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
|
||||
$app->get('/', API::class);
|
||||
|
||||
|
@ -6,7 +6,7 @@ $app->group('/sources', function($app) {
|
||||
$app->get('[/]', Sources::class);
|
||||
});
|
||||
|
||||
$app->group('/source/{currency_id}/{url}', function($app) {
|
||||
$app->group('/source/{source_id}', function($app) {
|
||||
$app->put('/edit[/]', [Sources::class, 'edit']);
|
||||
$app->delete('/delete[/]', [Sources::class, 'delete']);
|
||||
$app->get('[/]', [Sources::class, 'get']);
|
4
app/resources/routes/api/update.php
Normal file
4
app/resources/routes/api/update.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Controller\Update;
|
||||
|
||||
$app->get('/update', Update::class);
|
Reference in New Issue
Block a user