abiosoft / abiosoft/caddy-exec

Dynamically receive arguments

Offen
#16 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
155
Forks
21
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm going over the possibilities to handle a html form submission since directive [mailout](https://caddy.its-em.ma/v1/docs/http.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]
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.