/auth/signup
, /auth/signin
, /auth/me
, /auth/logout
Done/users/:username
, /users/me
, /users/me (PUT)
/links (GET, POST)
, /links/:id (PUT, DELETE)
,/socials (GET, POST)
, /socials/:id (PUT, DELETE)
. done/theme (GET, POST, PUT)
./analytics/:linkId/click
, /analytics
, /analytics/:linkId
/admin/users
, /admin/users/:id
, /admin/analytics
For the links endpoint, u obviously need aws-sdk/s3-client
and create an IAM user, which has not an access to console but it as S3fullAccess which is set by the root user, so do that get an accesskeyid and secretaccesskey!
Once your Node.js server is running (by executing node server.js
in your terminal), you can use Postman to test the file upload endpoint.
POST
method from the dropdown.http://localhost:3001/api/upload
form-data
radio button. This is crucial as it's the correct format for sending files.file
.If the upload is successful, you will see a 200 OK
status in the response, and the JSON data from the server's response will appear in the body section below. Additionally, you will find the uploaded file saved in the uploads/
directory on your server.