mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Locking down some paths not meant to be seen with url
This commit is contained in:
		| @@ -183,6 +183,14 @@ app.use('/logout', function(req, res) { | ||||
|    res.redirect('/login'); | ||||
| }); | ||||
|  | ||||
| app.use('/assets/admin/authenticated', function(req, res, next) { | ||||
|     if(!req.isAuthenticated()) { | ||||
|         res.sendStatus(403); | ||||
|         return; | ||||
|     } | ||||
|     return next(); | ||||
| }); | ||||
|  | ||||
| app.use('/assets', express.static(publicPath + '/assets')); | ||||
|  | ||||
| app.use('/', isLoggedIn, function(req, res) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user