doc in code

This commit is contained in:
2023-03-12 11:01:47 +01:00
parent c83fa2cfd9
commit f430646457

View File

@@ -13,8 +13,13 @@ module.exports = ( app, settings ) => {
app.get( '/admin/login', ( request, response ) => { app.get( '/admin/login', ( request, response ) => {
response.sendFile( path.join( __dirname + '/ui/login.html' ) ); response.sendFile( path.join( __dirname + '/ui/login.html' ) );
} ); } );
/*
main admin panel access route. Will serve an html file
that uses vue.js in its SPA form to make the admin panel
more responsive. Same technology is also used in the purchasing
system itself.
*/
app.get( '/admin', ( request, response ) => { app.get( '/admin', ( request, response ) => {
if ( request.session.loggedIn ) { if ( request.session.loggedIn ) {
if ( settings[ 'init' ] ) { if ( settings[ 'init' ] ) {