diff options
| -rw-r--r-- | src/controller/routes.phel | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/controller/routes.phel b/src/controller/routes.phel index 5dd41a3..4569472 100644 --- a/src/controller/routes.phel +++ b/src/controller/routes.phel @@ -31,7 +31,4 @@ (pdo/insert conn :authors_books {:book_id book-id :author_id (or (pdo/fetch-column (pdo/query conn "select id from authors where name = :name" {:name a})) (pdo/insert conn :authors {:name a}))}))))) - (h/response-from-map {:status 201 - :body (list (pdo/select conn "select * from books") - (pdo/select conn "select * from authors") - (pdo/select conn "select * from authors_books"))})) + (h/response-from-map {:status 301 :headers {:location "/"}})) |
