20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
import type { RequestHandler } from "express";
|
|
|
|
import * as configFunctions from "../../helpers/functions.config.js";
|
|
|
|
export const handler: RequestHandler = (_request, response) => {
|
|
|
|
if (!configFunctions.getProperty("application.ntfyStartup")) {
|
|
return response.redirect(
|
|
configFunctions.getProperty("reverseProxy.urlPrefix") +
|
|
"/dashboard/?error=ntfyNotConfigured"
|
|
);
|
|
}
|
|
|
|
response.render("admin-ntfyStartup", {
|
|
headTitle: "Ntfy Startup Notification"
|
|
});
|
|
};
|
|
|
|
export default handler;
|