Using Ghost v2.2
I understand that the Ghost App is not yet really a thing but I was hoping for some answers for my issue. Who knows, maybe I can help out with the Ghost App
Using the GhostApp 0.0.3, in the activate(), I have:
this.ghost.routeService.registerRouter('/twitter/:accessToken', (req, res, next) => {
res.send(req.method);
});
package.json:
"permissions": {
"routes": [
"/twitter/:accessToken"
]
}
What I cannot get is, how to set the methods (POST, PUT, DELETE)? This route I have is always a GET
. Using Postman, I make the request using POST, I get back GET
. Again, I know the Ghost App is not fully developed and was wondering if I can get my route to be either GET
or POST
, etc.
I also could not find anything useful inside /core/server/services/apps/proxy.js