I am trying to get this route to work
items/images/myimg.jpg
It responses 404 but work with
items/images/myimg
Also works with
items/images/myimg.jpg/
I tried the following router configuration
'get /items/images/:imageName': {
action: 'items/images/find',
skipAssets: true,
}
EDIT:
If I set skipAssets: false then the response will be unauthorized. I have the following ACL
'*': false,
'items/images/find': 'isLoggedIn',
In the isLoggedIn.js policy the req.session is undefined even when the user has a valid session.
if I set 'items/images/find': true it will work but I want access control for this route.