urouter/alias.json
Ivan Bushchik 653b41a67f
0.6.1: Add "html" alias type, fix --alias-file
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2024-01-21 08:36:30 +03:00

38 lines
568 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": {
"html": "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"
}
}
}
}
]