initial work

This commit is contained in:
Belén Curcio
2018-09-24 19:52:08 -03:00
parent 65156c0528
commit ff0f00a486
16 changed files with 232 additions and 0 deletions
@@ -0,0 +1,5 @@
import { RequestHandler } from "express";
export const adminHandler: RequestHandler = (req, res) => {
res.render("admin");
};
+4
View File
@@ -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;
}