@marcel91200 / caddy Mirror · read-only
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 01:00 UTC

master
caddyfiletest 16 lines 180 Bytes
Raw
1 &(api) {
2 header X-Version v1
3 respond "API v1"
4 }
5
6 &(api) {
7 header X-Version v2
8 respond "API v2"
9 }
10
11 localhost {
12 invoke api
13 }
14
15 ----------
16 cannot have duplicate named_routes: api