{ "admin": { "listen": "localhost:2020" }, "apps": { "http": { "servers": { "test_server": { "listen": [":8090"], "routes": [ { "match": [ { "type": "path", "paths": ["/api/*"] } ], "handle_path": "/api/*", "handle": [ { "handler": "respond", "status_code": 200, "body": "{\"message\": \"API endpoint with path stripping\", \"original_path\": \"{path}\"}" } ] }, { "match": [ { "type": "path", "paths": ["/redirect-test"] } ], "handle": [ { "handler": "redirect", "to": "https://example.com/new-location", "status_code": 301 } ] }, { "match": [ { "type": "path", "paths": ["/old-service/*"] } ], "handle": [ { "handler": "respond", "status_code": 410, "body": "This service has been permanently discontinued." } ] }, { "handle": [ { "handler": "file_server", "root": "./public", "browse": true } ] } ] } } } } }