17 lines
494 B
TypeScript
17 lines
494 B
TypeScript
import type { Request, Response } from 'express'
|
|
|
|
import { getConfigProperty } from '../../helpers/functions.config.js'
|
|
|
|
export default function handler(_request: Request, response: Response): void {
|
|
if (getConfigProperty('application.ntfyStartup') === undefined) {
|
|
response.redirect(
|
|
`${getConfigProperty('reverseProxy.urlPrefix')}/dashboard/?error=ntfyNotConfigured`
|
|
)
|
|
return
|
|
}
|
|
|
|
response.render('admin-ntfyStartup', {
|
|
headTitle: 'Ntfy Startup Notification'
|
|
})
|
|
}
|