mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 05:14:23 +00:00
doc in code
This commit is contained in:
@@ -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' ] ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user