revert more changes
This commit is contained in:
@@ -24,7 +24,6 @@ export default async (req, res) => {
|
||||
|
||||
switch (url.pathname) {
|
||||
case "/api":
|
||||
//case "/api/":
|
||||
api(req, res);
|
||||
break;
|
||||
case "/api/gist":
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import "dotenv/config";
|
||||
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";
|
||||
import express from "express";
|
||||
|
||||
const app = express();
|
||||
app.listen(process.env.port || 9000);
|
||||
|
||||
app.get("/", statsCard);
|
||||
app.get("/pin", repoCard);
|
||||
app.get("/top-langs", langCard);
|
||||
app.get("/wakatime", wakatimeCard);
|
||||
app.get("/gist", gistCard);
|
||||
Reference in New Issue
Block a user