For many routes particularly for actions, we need to execute code that can only run on the server, like connecting to third party APIs where we need to pass a secret auth header. How is this done with adminforth? I saw something deep in the docs somehwere (I forget where), about some api.ts? But there is nothing I can find in the documentation about this. So how do you run server only code? Can you access ENV vars from some sort of API route? Thanks.
For many routes particularly for actions, we need to execute code that can only run on the server, like connecting to third party APIs where we need to pass a secret auth header. How is this done with adminforth? I saw something deep in the docs somehwere (I forget where), about some api.ts? But there is nothing I can find in the documentation about this. So how do you run server only code? Can you access ENV vars from some sort of API route? Thanks.