|
26 | 26 | $app->setNamespace("\App\Controllers"); |
27 | 27 |
|
28 | 28 | $app->get("/", function() use($app) { |
29 | | - $app->response->respondWithCode("Welcome to bitcart API v2", 200); |
30 | | -}); |
31 | | - |
32 | | -$app->mount('/info', function() use($app) { |
33 | | - $app->get('/', 'InfoController@index'); |
34 | | - $app->get('/addresses', 'InfoController@addresses'); |
35 | | - $app->get('/qr', 'InfoController@qr'); |
36 | | - $app->get('/bank', 'InfoController@bank'); |
37 | | - $app->get('/mobile', 'InfoController@mobile'); |
38 | | - $app->get('/tax', 'InfoController@tax'); |
39 | | -}); |
40 | | - |
41 | | -$app->mount('/auth', function() use($app) { |
42 | | - $app->post('/login', 'AuthController@login'); |
43 | | - $app->post('/register', 'AuthController@register'); |
44 | | -}); |
45 | | - |
46 | | -$app->mount('/account', function() use($app) { |
47 | | - $app->get('/', 'AccountController@user'); |
48 | | - $app->get('/verify/{username}', 'AccountController@verifyUsername'); |
49 | | - $app->post('/update', 'AccountController@update'); |
50 | | - $app->post('/update/password', 'AccountController@password'); |
51 | | -}); |
52 | | - |
53 | | -$app->mount('/transactions', function() use($app) { |
54 | | - $app->get('/', 'TransactionsController@index'); |
55 | | - $app->get('/(\d+)', 'TransactionsController@withLimit'); |
56 | | -}); |
57 | | - |
58 | | -$app->mount('/transaction', function() use($app) { |
59 | | - $app->get('/(\d+)', 'TransactionsController@transaction'); |
| 29 | + $app->response->respondWithCode("Congrats!! You're on Leaf API", 200); |
60 | 30 | }); |
0 commit comments