mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
25 lines
800 B
TypeScript
25 lines
800 B
TypeScript
|
import { ExpressRequest, ExpressResponse } from "CommonServer/Utils/Express";
|
||
|
import ResourceUtil from "../Utils/Resources";
|
||
|
|
||
|
const Resources = ResourceUtil.getResources();
|
||
|
|
||
|
export default class ServiceHandler {
|
||
|
public static async executeResponse(req: ExpressRequest, res: ExpressResponse): Promise<void> {
|
||
|
|
||
|
let pageTitle: string = "";
|
||
|
let pageDescription: string = "";
|
||
|
let page = req.params['page'];
|
||
|
let pageData: any = {};
|
||
|
|
||
|
pageTitle = "Permissions"
|
||
|
pageDescription = "Learn how permisisons work with OneUptime"
|
||
|
|
||
|
return res.render('pages/index', {
|
||
|
page: page,
|
||
|
resources: Resources,
|
||
|
pageTitle: pageTitle,
|
||
|
pageDescription: pageDescription,
|
||
|
pageData: pageData
|
||
|
});
|
||
|
}
|
||
|
}
|