reset password
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const memberController = require("../controllers").member;
|
||||
const auth = require("../middleware/auth");
|
||||
const memberValidation = require("../controllers/validation").member;
|
||||
|
||||
module.exports = (app, url) => {
|
||||
/**
|
||||
@@ -64,7 +65,7 @@ module.exports = (app, url) => {
|
||||
* description: Message
|
||||
* example: Failed
|
||||
*/
|
||||
app.post(url + "user/register", memberController.validate('register'), memberController.register);
|
||||
app.post(url + "user/register", memberValidation.register(), memberController.register);
|
||||
/**
|
||||
* @swagger
|
||||
* /v1/user/login:
|
||||
@@ -300,7 +301,31 @@ module.exports = (app, url) => {
|
||||
* app.post("loadsubsription");
|
||||
* app.post("subscriptionstatus");
|
||||
* app.post("getapplist");
|
||||
* app.post("getslidecarddata");
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /v1/user/getslidecarddata:
|
||||
* get:
|
||||
* tags:
|
||||
* - Users
|
||||
* summary: Retrieve a single JSONPlaceholder user.
|
||||
* description: Retrieve a single JSONPlaceholder user. Can be used to populate a user profile when prototyping or testing an API.
|
||||
* security:
|
||||
* - bearerAuth: []
|
||||
* responses:
|
||||
* 200:
|
||||
* description: A single user.
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* $ref: '#/components/schemas/Member'
|
||||
*/
|
||||
|
||||
app.get(url + "user/getslidecarddata", auth, memberController.getSlideCardData);
|
||||
/**
|
||||
* app.post("subscribedcarddata");
|
||||
* app.post("subscribecard");
|
||||
* app.post("savesurvey");
|
||||
|
||||
Reference in New Issue
Block a user