urouter/alias.json
Ivan Bushchik 82ddc180cb
0.5.3: create "external" alias type
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-12-22 17:08:20 +03:00

38 lines
567 B
JSON

[
{
"uri":"/",
"alias": {
"url": "https://ivabus.dev"
}
},
{
"uri":"/",
"alias": {
"file": "src/main.rs"
},
"agent": {
"regex": "^curl/[0-9].[0-9].[0-9]$"
}
},
{
"uri":"text",
"alias": {
"text": "sometext"
},
"agent": {
"regex": "^curl/[0-9].[0-9].[0-9]$",
"only_matching": true
}
},
{
"uri": "external",
"alias": {
"external": {
"url": "https://iva.bz",
"headers": {
"user-agent": "curl/8.6.0"
}
}
}
}
]