remove test routes

This commit is contained in:
2023-10-11 13:33:13 +02:00
parent 1633cedec2
commit 62c2d57606
3 changed files with 11 additions and 11 deletions

View File

@@ -112,10 +112,10 @@ module.exports = ( app, settings ) => {
} }
} ); } );
app.get( '/test/login', ( request, response ) => { // app.get( '/test/login', ( request, response ) => {
request.session.loggedInAdmin = true; // request.session.loggedInAdmin = true;
response.send( 'Logged in' ); // response.send( 'Logged in' );
} ); // } );
app.get( '/admin/logout', ( request, response ) => { app.get( '/admin/logout', ( request, response ) => {
request.session.loggedInAdmin = false; request.session.loggedInAdmin = false;

View File

@@ -45,11 +45,11 @@ module.exports = ( app, settings ) => {
} }
} ); } );
app.get( '/test/user', ( req, res ) => { // app.get( '/test/user', ( req, res ) => {
req.session.loggedInUser = true; // req.session.loggedInUser = true;
req.session.username = 'info@janishutz.com'; // req.session.username = 'info@janishutz.com';
res.send( 'ok' ); // res.send( 'ok' );
} ); // } );
app.post( '/user/login', bodyParser.json(), ( request, response ) => { app.post( '/user/login', bodyParser.json(), ( request, response ) => {
if ( request.body.mail && request.body.password ) { if ( request.body.mail && request.body.password ) {

View File

@@ -19,7 +19,7 @@
{{ Math.round( zoomFactor * 1000 ) / 1000 }}x {{ Math.round( zoomFactor * 1000 ) / 1000 }}x
</td> </td>
</tr> </tr>
<tr> <!-- <tr>
<td>Row naming scheme</td> <td>Row naming scheme</td>
<td> <td>
<select v-model="generalSettings[ 'namingScheme' ]"> <select v-model="generalSettings[ 'namingScheme' ]">
@@ -28,7 +28,7 @@
<option value="roman">Roman numerals</option> <option value="roman">Roman numerals</option>
</select> </select>
</td> </td>
</tr> </tr> -->
</table> </table>
<h3>Component settings</h3> <h3>Component settings</h3>
<table v-if="active"> <table v-if="active">