From 0c4980bf501c911ff92553ac00ca50fe26c744d4 Mon Sep 17 00:00:00 2001 From: Martin Holzhauer Date: Sun, 19 Apr 2015 13:57:05 +0200 Subject: [PATCH] added a simple routing script for the php internal webserver to simplify the setup of a development environment --- api/api.php | 2 +- devrouter.php | 17 +++++++++++++++++ readme.md | 8 ++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 devrouter.php diff --git a/api/api.php b/api/api.php index fc8babb..c14d5be 100644 --- a/api/api.php +++ b/api/api.php @@ -30,7 +30,7 @@ function exceptionHandler($exception) { }; set_exception_handler('exceptionHandler'); -R::setup('sqlite:taskboard.db'); +R::setup('sqlite:'.__DIR__.'/taskboard.db'); createInitialUser(); $app->notFound(function() use ($app, $jsonResponse) { diff --git a/devrouter.php b/devrouter.php new file mode 100644 index 0000000..fb68fec --- /dev/null +++ b/devrouter.php @@ -0,0 +1,17 @@ +