NodeJS-Day-1-Task-NodeJS File System
π It contains NodeJS File System - using Express server π
π¬π¬ Created Get & Post Endpoints π¬π¬
β°β² Current Date & Time Displayed β°β²
π₯π₯π₯ Completed My Task π₯π₯π₯
π΄π΄
Kindly see my Answers in the npm run dev for kind attention Or
Use an app called "Postman" Or
Enter this link into the app called "Postman"
GET πππ http://127.0.0.1:4000/
{
"message": "Successfully The Current Date & Time Displayed",
"datetime": "2023-12-19T17:53:48.959Z"
}
POST πππ http://127.0.0.1:4000/post-file
{
"id" : 1,
"content" : "Post End Points Created",
"import" : true
}
{
"message": "Successfully The File Is Post",
"fileName": "current date-time_post.txt",
"datetime": "2023-12-19T17:55:57.743Z"
}
π΄π΄