urouter/alias.json
Ivan Bushchik 95986d1f71
0.5.1: Add proper alias.json specification
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-12-21 20:17:30 +03:00

27 lines
385 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
}
}
]