github-readme-stats/express.js

16 lines
427 B
JavaScript
Raw Normal View History

2023-02-26 10:44:42 +08:00
import statsCard from "./api/index.js";
import repoCard from "./api/pin.js";
import langCard from "./api/top-langs.js";
import wakatimeCard from "./api/wakatime.js";
import express from "express";
import dotenv from "dotenv";
2023-02-26 10:44:42 +08:00
dotenv.config();
const app = express();
app.listen(process.env.port || 9000);
2023-02-26 10:44:42 +08:00
app.get("/", statsCard);
app.get("/pin", repoCard);
app.get("/top-langs", langCard);
app.get("/wakatime", wakatimeCard);