controllers are all POST

This commit is contained in:
Jan Prochazka
2021-12-22 09:18:48 +01:00
parent a108fb749a
commit f0e0fb8f64
13 changed files with 91 additions and 91 deletions

View File

@@ -23,13 +23,13 @@ module.exports = function useController(app, route, controller) {
const meta = controller[`${key}_meta`];
if (!meta) continue;
let method = 'get';
let method = 'post';
let raw = false;
let rawParams = false;
if (_.isString(meta)) {
method = meta;
}
// if (_.isString(meta)) {
// method = meta;
// }
if (_.isPlainObject(meta)) {
method = meta.method;
raw = meta.raw;