0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed duplicative and unreferenced resources section

This commit is contained in:
Jordan Sexton 2014-07-09 18:48:00 -05:00
parent d2cc9e5046
commit 66ae7e5669

View file

@ -1,19 +1,7 @@
// # API routes
var express = require('express'),
api = require('../api'),
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;
apiRoutes = function (middleware) {
var router = express.Router();