github-readme-stats/express.js

17 lines
471 B
JavaScript
Raw Normal View History

import "dotenv/config";
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 gistCard from "./api/gist.js";
2023-02-26 10:44:42 +08:00
import express from "express";
2023-02-26 10:44:42 +08:00
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);
app.get("/gist", gistCard);