0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed configuration endpoint from Content API V2

no issue

- we are not aware of a use case for this endpoint currently
This commit is contained in:
kirrg001 2018-11-05 18:48:57 +01:00
parent 1b9c61eed1
commit 65f6f64f91

View file

@ -1,14 +1,10 @@
const express = require('express');
const api = require('../../../../api');
const apiv2 = require('../../../../api/v2');
const mw = require('./middleware');
module.exports = function apiRoutes() {
const router = express.Router();
// ## Configuration
router.get('/configuration', api.http(api.configuration.read));
// ## Posts
router.get('/posts', mw.authenticatePublic, apiv2.http(apiv2.posts.browse));
router.get('/posts/:id', mw.authenticatePublic, apiv2.http(apiv2.posts.read));