import type { Request, Response } from 'express' import * as configFunctions from '../../helpers/functions.config.js' export function handler(_request: Request, response: Response): void { if (configFunctions.getConfigProperty('application.ntfyStartup') === undefined) { response.redirect( configFunctions.getConfigProperty('reverseProxy.urlPrefix') + '/dashboard/?error=ntfyNotConfigured' ) return } response.render('admin-ntfyStartup', { headTitle: 'Ntfy Startup Notification' }) } export default handler