Skip to content

Commit

Permalink
endpoint to get user info
Browse files Browse the repository at this point in the history
  • Loading branch information
Govorunb committed Jun 15, 2024
1 parent dae6317 commit ce50035
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ebs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async function main() {
require("./modules/config");
require("./modules/transactions");
require("./modules/game");
require("./modules/twitch");

const { setIngame } = require("./modules/config");

Expand Down
7 changes: 7 additions & 0 deletions ebs/src/modules/twitch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { app } from "..";
import { asyncCatch } from "../util/middleware";
import { getHelixUser } from "../util/twitch";

app.get("/private/user/:id", asyncCatch(async (req, res) => {
res.json(await getHelixUser(req.params["id"]));
}));

0 comments on commit ce50035

Please sign in to comment.