oneuptime/Home/Utils/NotFound.ts

16 lines
400 B
TypeScript

import { ViewsPath } from "./Config";
import { ExpressResponse } from "Common/Server/Utils/Express";
export default class NotFoundUtil {
public static renderNotFound(res: ExpressResponse): void {
res.status(404);
res.render(`${ViewsPath}/not-found.ejs`, {
footerCards: false,
support: false,
cta: false,
blackLogo: false,
requestDemoCta: false,
});
}
}