You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
619 B

3 years ago
  1. <?php
  2. require __DIR__.'/../vendor/autoload.php';
  3. require __DIR__.'/../app/bootstrap.php';
  4. $app->route('GET /', array(new App\Controllers\Index, 'indexAction'));
  5. $app->route('GET /api/bucket', array(new App\Controllers\Bucket, 'indexAction'));
  6. $app->route('POST /api/bucket', array(new App\Controllers\Bucket, 'createAction'));
  7. $app->route('POST /api/bucket/[:id]', array(new App\Controllers\Bucket, 'updateAction'));
  8. $app->route('DELETE /api/bucket/[:id]', array(new App\Controllers\Bucket, 'destroyAction'));
  9. $app->route('GET /api/note/:bucket_id', array(new App\Controllers\Note, 'indexAction'));
  10. $app->start();