prepare newsletter plugin

This commit is contained in:
2023-09-16 11:49:35 +02:00
parent 364f1d4c38
commit 892772bcb9
8 changed files with 272 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ const path = require( 'path' );
const mm = require( '../../../mail/mailSender.js' );
const sendMail = new mm();
module.exports = ( app, settings ) => {
module.exports = ( app ) => {
app.get( '/admin/mail/compose', ( request, response ) => {
if ( request.session.loggedInAdmin ) {
response.sendFile( path.join( __dirname + '/html/compose.html' ) );