I'm trying to figure out how to use fpWebFile to serve static content, while also limiting access.
I have /app and /app/members, serving files is easy with fpWebFile but I can't figure out how to run a handler for every request to /app/members/* to check if the user is authenticated and either allow access or return a 401.
Is there a way to do this with static file/fpWebFile, so I don't have to deal with the entire request manually? IE. mimetypes, checking path, loading the file into content, etc.