Skip to content

Commit

Permalink
feat(app): Add API Key
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarfadlan committed Feb 23, 2024
1 parent 3841325 commit 1972cf2
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 135 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HOST="localhost"
PORT="3000"
API_KEY="a6bc226axxxxxxxxxxxxxx"
NODE_ENV="development"
DATABASE_URL="mysql://root:nizar@localhost:3406/baileys_api"
RECONNECT_INTERVAL="5000"
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ HOST="localhost"
# Listening Port
PORT="3000"
# API Key (for Authorization Header)
API_KEY="" # Leave it empty if you don't want
# Project Mode (development|production)
NODE_ENV="development"
Expand Down Expand Up @@ -88,7 +91,7 @@ npm run start

## API Docs

The API documentation is available online [here](https://documenter.getpostman.com/view/18988925/2s8Z73zWbg). You can also import the **Postman Collection File** `(postman_collection.json)` into your Postman App alternatively
The API documentation import the **Postman Collection File** `(postman_collection.json)` into your Postman App alternatively

## Notes

Expand Down
Loading

0 comments on commit 1972cf2

Please sign in to comment.