2023-11-07 12:54:07 +08:00
|
|
|
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";
|
2023-08-18 13:42:20 +08:00
|
|
|
import gistCard from "./api/gist.js";
|
2023-02-26 10:44:42 +08:00
|
|
|
import express from "express";
|
2023-02-25 22:04:00 +08:00
|
|
|
|
2023-02-26 10:44:42 +08:00
|
|
|
const app = express();
|
|
|
|
app.listen(process.env.port || 9000);
|
2023-02-25 22:04:00 +08:00
|
|
|
|
2023-02-26 10:44:42 +08:00
|
|
|
app.get("/", statsCard);
|
|
|
|
app.get("/pin", repoCard);
|
|
|
|
app.get("/top-langs", langCard);
|
|
|
|
app.get("/wakatime", wakatimeCard);
|
2023-08-18 13:42:20 +08:00
|
|
|
app.get("/gist", gistCard);
|