WebSocket app
This commit is contained in:
8
ws/resources/routes/ws.php
Normal file
8
ws/resources/routes/ws.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$files = new DirectoryIterator(implode(DIRECTORY_SEPARATOR, [__DIR__, 'ws']));
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
9
ws/resources/routes/ws/currencies.php
Normal file
9
ws/resources/routes/ws/currencies.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
use ProVM\Money\Common\Listener\Currencies;
|
||||
|
||||
$controller = new Currencies();
|
||||
$app->add('currencies', $controller);
|
||||
$app->add('currency', [$controller, 'get']);
|
||||
$app->add('currency.values.latest', [$controller, 'latest']);
|
||||
$app->add('currency.sources', [$controller, 'getSources']);
|
||||
$app->add('currency.values', [$controller, 'getValues']);
|
Reference in New Issue
Block a user