A simple Node.js app to create and retrieve timestamp files.
- Create Timestamp File: Generates a text file with the current timestamp.
- Retrieve Timestamp Files: Lists all timestamp files and their contents.
https://nodejs-timestamp-task.onrender.com/
-
Create Timestamp File
GET /current-time
- Creates a file with the current timestamp.
- Response:
{ "currenttime": "06-06-2024-21-11-02" }
-
Retrieve All Timestamp Files
GET /all-time
- Retrieves all timestamp files and their contents.
- Response:
{ "allTimestamp": [ "06-06-2024-21-11-02", "06-06-2024-21-12-03", ... ] }
For detailed API documentation, visit the Postman Documentation.
- Express
- Node.js
- date-fns