Skip to content

Commit

Permalink
Update create.js
Browse files Browse the repository at this point in the history
Remove superfluous `paths` export and `app.post` return
  • Loading branch information
zarathustra323 authored Apr 4, 2019
1 parent 9a9d2c8 commit 1bcec43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/create.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { asyncRoute } = require('@base-cms/utils');

const paths = [];
exports.paths = paths;

const createRoute = (app, path, fn) => {
paths.push(path);
Expand All @@ -19,7 +18,7 @@ const createRoute = (app, path, fn) => {
return { ...o, [k]: v };
}, {});
const results = await fn(body, options);
return res.json(results);
res.json(results);
}));
};

Expand Down

0 comments on commit 1bcec43

Please sign in to comment.