mirror of https://github.com/Facinorous-420/dick
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
445 B
17 lines
445 B
import { Request, Response, Router } from "express"
|
|
import { authCheck, adminCheck, wrap } from "../utils/utils"
|
|
import { TEMPLATE } from "../CONSTANTS"
|
|
import { Pager } from "../Pager"
|
|
|
|
export const adminRoutes = (app: Router) => {
|
|
app.get(
|
|
"/admin",
|
|
authCheck,
|
|
adminCheck,
|
|
wrap,
|
|
async (req: Request, res: Response) => {
|
|
return Pager.render(res, req, TEMPLATE.USER, {})
|
|
}
|
|
)
|
|
}
|