mirror of
https://github.com/Codegres-com/Simple-Whatsapp-API.git
synced 2026-04-26 20:35:55 +03:00
[PR #6] [MERGED] feat: Allow API keys in request body #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Simple-Whatsapp-API#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Codegres-com/Simple-Whatsapp-API/pull/6
Author: @Codegres-com
Created: 9/30/2025
Status: ✅ Merged
Merged: 9/30/2025
Merged by: @Codegres-com
Base:
main← Head:feat/body-api-key📝 Commits (1)
4caf4adfeat: Allow API keys in request body📊 Changes
7 files changed (+355 additions, -245 deletions)
View changed files
📝
README.md(+15 -12)📝
src/controllers/authController.js(+1 -9)📝
src/controllers/messageController.js(+1 -9)📝
src/middleware/masterAuthMiddleware.js(+3 -1)📝
src/routes/api.js(+94 -18)➕
src/utils/apiKeyExtractor.js(+23 -0)📝
whatsapp_api_collection.json(+218 -196)📄 Description
This change allows both the
X-MASTER-KEYandX-API-KEYto be sent in the request body for POST requests, providing more flexibility for users.The key extraction logic has been centralized into a new helper function to improve code maintainability.
The Swagger documentation, Postman collection, and README have all been updated to reflect these changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.