Download src/routes/github.router.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/routes/github.router.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/routes/github.router.ts
-
curl -L -o github.router.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/routes/github.router.ts
681 Bytes
| import { webhookController } from "@/instances.js"; | |
| import { authenticateToken } from "@/middlewares/authMiddleware.js"; | |
| import { Router } from "express"; | |
| const githubRouter = Router(); | |
| githubRouter.get("/account", authenticateToken, webhookController.getUserAccountData.bind(webhookController)); | |
| githubRouter.get("/repos", authenticateToken, webhookController.getUserRepos.bind(webhookController)); | |
| githubRouter.get("/repos/:owner/:repo", authenticateToken, webhookController.getUserRepo.bind(webhookController)); | |
| githubRouter.get("/repos/:owner/:repo/branches", authenticateToken, webhookController.getUserRepoBranches.bind(webhookController)); | |
| export default githubRouter; | |