What’s up guys, getting started with Ghost and I have to say it’s pretty great. I’m automating some of my deployment process and wondering if it’s possible to upload a new routes.yaml
file via the Admin API - or to hit the settings endpoints at all? Doing a little digging I see the following route defined (this is what’s used when uploading a routes file from the frontend’s “Labs” section)
router.post('/settings/routes/yaml',
mw.authAdminApi,
apiMw.upload.single('routes'),
apiMw.upload.validation({type: 'routes'}),
http(api.settings.upload)
);
But whenever I try posting to:
https://mywebsite.com/ghost/api/admin/settings/routes/yaml
I get:
NotImplementedError - "The server does not support the functionality required to fulfill the request."
Any idea how to do this / if it’s even possible to access the admin’s /settings
routes?