mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 05:14:23 +00:00
remove test routes
This commit is contained in:
@@ -112,10 +112,10 @@ module.exports = ( app, settings ) => {
|
||||
}
|
||||
} );
|
||||
|
||||
app.get( '/test/login', ( request, response ) => {
|
||||
request.session.loggedInAdmin = true;
|
||||
response.send( 'Logged in' );
|
||||
} );
|
||||
// app.get( '/test/login', ( request, response ) => {
|
||||
// request.session.loggedInAdmin = true;
|
||||
// response.send( 'Logged in' );
|
||||
// } );
|
||||
|
||||
app.get( '/admin/logout', ( request, response ) => {
|
||||
request.session.loggedInAdmin = false;
|
||||
|
||||
@@ -45,11 +45,11 @@ module.exports = ( app, settings ) => {
|
||||
}
|
||||
} );
|
||||
|
||||
app.get( '/test/user', ( req, res ) => {
|
||||
req.session.loggedInUser = true;
|
||||
req.session.username = 'info@janishutz.com';
|
||||
res.send( 'ok' );
|
||||
} );
|
||||
// app.get( '/test/user', ( req, res ) => {
|
||||
// req.session.loggedInUser = true;
|
||||
// req.session.username = 'info@janishutz.com';
|
||||
// res.send( 'ok' );
|
||||
// } );
|
||||
|
||||
app.post( '/user/login', bodyParser.json(), ( request, response ) => {
|
||||
if ( request.body.mail && request.body.password ) {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
{{ Math.round( zoomFactor * 1000 ) / 1000 }}x
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <tr>
|
||||
<td>Row naming scheme</td>
|
||||
<td>
|
||||
<select v-model="generalSettings[ 'namingScheme' ]">
|
||||
@@ -28,7 +28,7 @@
|
||||
<option value="roman">Roman numerals</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tr> -->
|
||||
</table>
|
||||
<h3>Component settings</h3>
|
||||
<table v-if="active">
|
||||
|
||||
Reference in New Issue
Block a user