urouter/alias.json
Ivan Bushchik 0815b295b2
0.5.1: Add proper alias.json specification
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-12-21 20:19:41 +03:00

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