You are right, you can't expose the whole app through the azure function as far as I know.
You should use the azure web app or azure VM to get the app running.