|
|
@ -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) { |
|
|
|