sails-application-generator
Version:
command line tool
24 lines (23 loc) • 649 B
JavaScript
module.exports = {
'post /signup' : {
controller: 'AuthController',
action: 'signup',
skipAssets: 'true',
//swagger path object
swagger: {
methods: ['POST'],
summary: ' return username and password with token ',
description: 'register new user',
produces: [
'application/json'
],
responses: {
'200': {
description: 'register new user',
schema: 'User', // api/model/Group.js,
type: 'array'
}
}
}
},
}