diff --git a/controllers/controllers.php b/controllers/controllers.php index ed871c0..c212a43 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -50,6 +50,13 @@ $app->get('/new', function() use($app) { } }); +$app->get('/new/options.json', function() use($app) { + $app->response()['Content-Type'] = 'application/json'; + $app->response()->body(json_encode(array( + 'Caffeine' => caffeine_options(), + 'Alcohol' => alcohol_options() + ))); +}); $app->post('/prefs', function() use($app) { diff --git a/public/images/teacup-pixel.png b/public/images/teacup-pixel.png new file mode 100644 index 0000000..9a80712 Binary files /dev/null and b/public/images/teacup-pixel.png differ