#4 - add support for sharing pages publicly, without login

This commit is contained in:
2021-03-04 11:26:14 -06:00
parent 2f3d94adf3
commit 82605bb697
8 changed files with 139 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ class ApiRoute extends Middleware {
return [...super.services, 'models']
}
async test(req, res, next, { allow_public = false }) {
async test(req, res, next, { allow_public = true }) {
// If we have an authenticated session, just continue
if ( req.is_auth ) {
return next()