mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 22:49:27 +02:00
add login portal and traefik middleware auth for testing redirect login
This commit is contained in:
parent
e731fc52aa
commit
7c8bb45fb0
14 changed files with 285 additions and 130 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Router } from "express";
|
||||
import * as gerbil from "@server/routers/gerbil";
|
||||
import * as badger from "@server/routers/badger";
|
||||
import * as traefik from "@server/routers/traefik";
|
||||
import HttpCode from "@server/types/HttpCode";
|
||||
|
||||
|
@ -14,10 +15,15 @@ internalRouter.get("/traefik-config", traefik.traefikConfigProvider);
|
|||
|
||||
// Gerbil routes
|
||||
const gerbilRouter = Router();
|
||||
internalRouter.use("/gerbil", gerbilRouter);
|
||||
|
||||
gerbilRouter.get("/get-config", gerbil.getConfig);
|
||||
gerbilRouter.post("/receive-bandwidth", gerbil.receiveBandwidth);
|
||||
|
||||
internalRouter.use("/gerbil", gerbilRouter);
|
||||
// Badger routes
|
||||
const badgerRouter = Router();
|
||||
internalRouter.use("/badger", badgerRouter);
|
||||
|
||||
internalRouter.get("/verify-user", badger.verifyUser)
|
||||
|
||||
export default internalRouter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue