Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically receive arguments #16

Open
jotosmurf opened this issue Mar 27, 2022 · 0 comments
Open

Dynamically receive arguments #16

jotosmurf opened this issue Mar 27, 2022 · 0 comments

Comments

@jotosmurf
Copy link

jotosmurf commented Mar 27, 2022

I'm going over the possibilities to handle a html form submission since directive mailout that used to work perfectly with caddy v1 is not supported in v2 anymore.

Was thinking to simply trigger a .go file when a route is being hit. Is it possible to dynamically receive arguments instead of hard coding them in the Caddyfile?

e.g something like this:

          // command to execute
          "command": "handleform.go",
          // command arguments
          "args": [$args]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant