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:
commit
7c6da1db1c
1 changed files with 1 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue