mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 04:10:37 +08:00
initial work
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { RequestHandler } from "express";
|
||||
|
||||
export const adminHandler: RequestHandler = (req, res) => {
|
||||
res.render("admin");
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
import express from "express";
|
||||
import passport from "passport";
|
||||
|
||||
import { adminHandler } from "talk-server/app/handlers/admin/admin";
|
||||
import {
|
||||
logoutHandler,
|
||||
signupHandler,
|
||||
@@ -153,5 +154,8 @@ export async function createRouter(app: AppOptions, options: RouterOptions) {
|
||||
// Handle the stream handler.
|
||||
router.get("/embed/stream", cacheHeadersMiddleware("1h"), streamHandler);
|
||||
|
||||
// Handle the stream handler.
|
||||
router.get("/admin", adminHandler);
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user