From a49565c6c2935e6478ec9f5f4a0f0846eda1f161 Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Mon, 20 May 2013 01:22:21 -0300 Subject: [PATCH] settings' API routes --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index 511c256c99..e43a627f11 100644 --- a/app.js +++ b/app.js @@ -67,6 +67,9 @@ ghost.app().post('/api/v0.1/posts/create', auth, api.requestHandler(api.posts.add)); ghost.app().put('/api/v0.1/posts/edit', auth, api.requestHandler(api.posts.edit)); ghost.app()['delete']('/api/v0.1/posts/:id', auth, api.requestHandler(api.posts.destroy)); + ghost.app().get('/api/v0.1/settings', auth, api.requestHandler(api.settings.browse)); + ghost.app().get('/api/v0.1/settings/:key', auth, api.requestHandler(api.settings.read)); + ghost.app().put('/api/v0.1/settings/edit', auth, api.requestHandler(api.settings.edit)); /** * Admin routes..