http://outils.ft-chatons.local { header X-Chatons "miaou" respond /healthcheck "OK" redir / /hello/world redir /hello /hello/world handle_path /hello/* { respond "Hello {path.0}!" } handle /date { templates respond `{{now | date "2006-01-02 15:04:05"}}` } handle /ip { respond "{http.request.remote.host}" } handle_path /b64/encode/* { templates respond `{{ .Req.URL.Path | trimPrefix "/" | b64enc }}` } handle_path /b64/decode/* { templates respond `{{ .Req.URL.Path | trimPrefix "/" | b64dec }}` } }