Skip to content

Commit

Permalink
fix: Change router to similar lib
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Jun 23, 2022
1 parent fcc0358 commit 9975575
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controller/messageController.js
Expand Up @@ -191,7 +191,7 @@ export async function sendButtons(req, res) {
}
}

export async function sendButtonsList(req, res) {
export async function sendListMessage(req, res) {
const { phone, description = '', sections, buttonText = 'SELECIONE UMA OPÇÃO' } = req.body;

try {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/index.js
Expand Up @@ -76,7 +76,7 @@ routes.post('/api/:session/send-link-preview', verifyToken, statusConnection, Me
routes.post('/api/:session/send-location', verifyToken, statusConnection, MessageController.sendLocation);
routes.post('/api/:session/send-mentioned', verifyToken, statusConnection, MessageController.sendMentioned);
routes.post('/api/:session/send-buttons', verifyToken, statusConnection, MessageController.sendButtons);
routes.post('/api/:session/send-buttons-list', verifyToken, statusConnection, MessageController.sendButtonsList);
routes.post('/api/:session/send-list-message', verifyToken, statusConnection, MessageController.sendListMessage);

// Group
routes.get('/api/:session/all-broadcast-list', verifyToken, statusConnection, GroupController.getAllBroadcastList);
Expand Down
2 changes: 1 addition & 1 deletion src/swagger.json
Expand Up @@ -5036,7 +5036,7 @@
"deprecated": false
}
},
"/send-buttons-list": {
"/send-list-message": {
"post": {
"tags": ["Send Message"],
"summary": "Send Message Button with sections",
Expand Down

0 comments on commit 9975575

Please sign in to comment.