connect('/', ['controller' => 'Main', 'action' => 'index']); $routes->connect('/address/*', ['controller' => 'Main', 'action' => 'address']); $routes->connect('/blocks/*', ['controller' => 'Main', 'action' => 'blocks']); $routes->connect('/claims/*', ['controller' => 'Main', 'action' => 'claims']); $routes->connect('/find', ['controller' => 'Main', 'action' => 'find']); $routes->connect('/realtime', ['controller' => 'Main', 'action' => 'realtime']); $routes->connect('/stats', ['controller' => 'Main', 'action' => 'stats']); $routes->connect('/tx/*', ['controller' => 'Main', 'action' => 'tx']); $routes->connect('/qr/*', ['controller' => 'Main', 'action' => 'qr']); $routes->connect('/api/v1/address/:addr/tag', ['controller' => 'Main', 'action' => 'apiaddrtag'], ['addr' => '[A-Za-z0-9,]+', 'pass' => ['addr']]); $routes->connect('/api/v1/address/:addr/utxo', ['controller' => 'Main', 'action' => 'apiaddrutxo'], ['addr' => '[A-Za-z0-9,]+', 'pass' => ['addr']]); $routes->connect('/api/v1/address/:addr/balance', ['controller' => 'Main', 'action' => 'apiaddrbalance'], ['addr' => '[A-Za-z0-9]+', 'pass' => ['addr']]); $routes->connect('/api/v1/address/:addr/transactions', ['controller' => 'Main', 'action' => 'apiaddrtx'], ['addr' => '[A-Za-z0-9,]+', 'pass' => ['addr']]); $routes->connect('/api/v1/charts/blocksize/:period', ['controller' => 'Main', 'action' => 'apiblocksize'], ['period' => '[012346789dhy]+', 'pass' => ['period']]); $routes->connect('/api/v1/realtime/blocks', ['controller' => 'Main', 'action' => 'apirealtimeblocks']); $routes->connect('/api/v1/realtime/tx', ['controller' => 'Main', 'action' => 'apirealtimetx']); $routes->connect('/api/v1/recentblocks', ['controller' => 'Main', 'action' => 'apirecentblocks']); $routes->connect('/api/v1/status', ['controller' => 'Main', 'action' => 'apistatus']); //$routes->connect('/api/v1/recenttxs', ['controller' => 'Main', 'action' => 'apirecenttxs']); $routes->connect('/api/v1/claims/browse', ['controller' => 'Claims', 'action' => 'apibrowse']); //$routes->fallbacks(DashedRoute::class); }); /** * Load all plugin routes. See the Plugin documentation on * how to customize the loading of plugin routes. */ Plugin::routes();