0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #3231 from jordansexton/patch-1

Removed duplicative and unreferenced resources section
This commit is contained in:
Hannah Wolfe 2014-07-10 12:03:21 +01:00
commit 7c6da1db1c

View file

@ -1,19 +1,7 @@
// # API routes // # API routes
var express = require('express'), var express = require('express'),
api = require('../api'), api = require('../api'),
apiRoutes, apiRoutes;
resources;
resources = {
posts: function (router) {
router.get('/posts', api.http(api.posts.browse));
router.post('/posts', api.http(api.posts.add));
router.get('/posts/:id', api.http(api.posts.read));
router.get('/posts/slug/:slug', api.http(api.posts.read));
router.put('/posts/:id', api.http(api.posts.edit));
router.del('/posts/:id', api.http(api.posts.destroy));
}
};
apiRoutes = function (middleware) { apiRoutes = function (middleware) {
var router = express.Router(); var router = express.Router();