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.

18 lines
803 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. require __DIR__.'/../vendor/autoload.php';
  3. require __DIR__.'/../app/bootstrap.php';
  4. $app->route('GET /', array(new App\Http\Home, 'homeAction'));
  5. $app->route('GET /bucket/@id:[0-9]', array(new App\Http\Bucket, 'viewAction'));
  6. $app->route('GET /bucket/@id:[0-9]', array(new App\Http\Bucket, 'indexAction'));
  7. $app->route('POST /bucket', array(new App\Http\Bucket, 'createAction'));
  8. $app->route('PUT /bucket/@id:[0-9]', array(new App\Http\Bucket, 'updateAction'));
  9. $app->route('DELETE /bucket/@id:[0-9]', array(new App\Http\Bucket, 'destroyAction'));
  10. $app->route('POST /note', array(new App\Http\Note, 'createAction'));
  11. $app->route('PUT /note/@id:[0-9]', array(new App\Http\Note, 'updateAction'));
  12. $app->route('DELETE /note/@id:[0-9]', array(new App\Http\Note, 'destroyAction'));
  13. $app->start();