If you want to have a single entry point then a proxy approach is best - for authentication, authorization, session management and those sort of things. If you have internal entries in that proxy (like in your code) then you'll waste some extra time for nothing - first run the proxy persistent...