mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: add auth extension points and one ssh connect pipeline
This commit is contained in:
1 parent
d3c209af13
commit
d774df8b41
159 files changed
+43243
-7451
No files matched your search
@@ -69,4 +69,13 @@ router.use("/:pluginId", (req: Request, res: Response, next) => {
|
||||
pluginRouter(req, res, next);
|
||||
});
|
||||
|
||||
/**
|
||||
* Mounts the dispatcher. No auth in front of it: each plugin router runs
|
||||
* core auth itself and skips it only for the paths it declared public, so a
|
||||
* webhook or OIDC callback a plugin serves can actually be reached.
|
||||
*/
|
||||
export function mountPluginApi(app: express.Express): void {
|
||||
app.use("/plugin-api", router);
|
||||
}
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user