Closed akama-aka closed 1 month ago
Wrap your routes in a plugin.
(sorry for the short response, I guess this can unblock you quickly).
Wrap your routes in a plugin.
(sorry for the short response, I guess this can unblock you quickly).
okay thank you, I'll try
Is there a different possibility? because I dont really want to recode everything into a single function
Because I've everything in this schema:
module.exports = [
{
method: "GET",
url: "/robots.txt",
schema: {
description:"Robots Txt file",
response:{
200: {
description:"Successful response",
type: "object",
properties: {
test: {type:'string'}
}
}
}
},
handler: function (req, res) {
res.headers({ "Content-Type": "text/plain" });
res.send("User-Agent: *\nDisallow: /");
},
},
...
Got it thanks
Prerequisites
Issue
Hello, ich habe gerade ein problem und zwar werden die Routes von swagger nicht erkannt oder geparsed und ich weiß nicht wirklich warum. Ich hoffe mir kann da wer Helfen:
server.js
Controllers/one.js