28 lines
378 B
Plaintext
28 lines
378 B
Plaintext
http://outils.localhost {
|
|
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 "{{.ClientIP}"
|
|
}
|
|
|
|
handle_path /b64/encode/* {
|
|
}
|
|
|
|
handle_path /b64/decode/* {
|
|
}
|
|
}
|