diff --git a/src/index.js b/src/index.js index 501e586..07ccff9 100644 --- a/src/index.js +++ b/src/index.js @@ -319,29 +319,109 @@ app.get('/docs', (req, res) => {

API Documentation

Dashboard -

GET /api/song

-

Endpoint to log a song play. Requires query parameters:

- - Response: - -

GET /api/user-songs

-

Endpoint to retrieve songs played by a specific user. Requires query parameters:

- - Response: - +
+

GET /api/song

+

Endpoint to log a song play. Requires query parameters:

+ + Response: + +
+
+

GET /api/user-songs

+

Endpoint to retrieve songs played by a specific user. Requires query parameters:

+ + Response: + +
+
+

GET /api/db/clear

+

Endpoint to clear db by the owner or admin. Requires query parameters:

+ + Response: + +
+

Referral Codes

+
+

GET /api/referral-codes

+

Endpoint to retrieve all referral codes.

+ Response: + +
+ +
+

GET /api/referral-codes/add

+

Endpoint to add a new referral code. Requires query parameters:

+ + Response: + +
+ +
+

GET /api/referral-codes/use

+

Endpoint to use a referral code. Requires query parameters:

+ + Response: + +
+ +
+

GET /api/referral-codes/generate

+

Endpoint to generate new referral codes. Requires query parameters:

+ + Response: + +
+ +
+

GET /api/referral-codes/get

+

Endpoint to retrieve referral codes by user ID. Requires query parameters:

+ + Response: + +
`)