18 lines
352 B
JavaScript
18 lines
352 B
JavaScript
|
module.exports = Self => {
|
||
|
Self.remoteMethodCtx('post', {
|
||
|
description: 'Returns the sent parameters',
|
||
|
returns: {
|
||
|
type: 'object',
|
||
|
root: true
|
||
|
},
|
||
|
http: {
|
||
|
path: `/post`,
|
||
|
verb: 'POST'
|
||
|
}
|
||
|
});
|
||
|
|
||
|
Self.post = async ctx => {
|
||
|
return ctx.req.body;
|
||
|
};
|
||
|
};
|