sunrise-cms/handlers/admin-get/ntfyStartup.js

11 lines
429 B
JavaScript

import { getConfigProperty } from '../../helpers/functions.config.js';
export default function handler(_request, response) {
if (getConfigProperty('application.ntfyStartup') === undefined) {
response.redirect(`${getConfigProperty('reverseProxy.urlPrefix')}/dashboard/?error=ntfyNotConfigured`);
return;
}
response.render('admin-ntfyStartup', {
headTitle: 'Ntfy Startup Notification'
});
}