Skip to content

Backend only code? #642

@osseonews

Description

@osseonews

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions