aboutsummaryrefslogtreecommitdiff
path: root/app.js
blob: 9870050b124078f9e7ceb47b63ff15195757631d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const express = require("express");
const api = require("./api/v1");
const differenceInDays = require('date-fns/differenceInDays')

const now = new Date();
const commit = new Date(1611497751 * 1000);
console.log(now);
console.log(commit)
console.log(differenceInDays(now, commit));
const app = express();
app.use("/api/v1", api);
app.listen(1337);