A microservice project for freeCodeCamp Back End Development certificate.
Install dependencies
$ npm install
Build and run
$ npm run build:start
GET /api/
{
"unix": 1673540133491,
"utc": "Thu, 12 Jan 2023 16:15:33 GMT"
}
GET /api/${date}
Parameter | Type | Description |
---|---|---|
date |
string : "yyyy-mm-dd" |
Date parameter that you want to get in unix. |
GET /api/2015-12-25
{
"unix": 1451001600000,
"utc": "Fri, 25 Dec 2015 00:00:00 GMT"
}
Parameter | Type | Description |
---|---|---|
date |
number |
Date parameter that you want to get in utc. |
GET /api/1451001600000
{
"unix": 1451001600000,
"utc": "Fri, 25 Dec 2015 00:00:00 GMT"
}