mirror of
https://github.com/ivabus/urouter
synced 2024-11-10 02:25:22 +03:00
|
||
---|---|---|
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
Rocket.toml |
urouter
Fork of ivabus/aliurl that routes statically.
Installation
git clone https://github.com/ivabus/urouter
cd urouter
Edit alias.json
and cargo run
alias.json
example
[
{
"uri": "uri",
"alias": "file"
},
{
"uri": "uri2",
"alias": "http://example.com",
"is_url": true
},
{
"uri": "/",
"alias": "https://somecoolscript.sh",
"is_url": true,
"curl_only": true
}
]
"curl_only"
thing for curl https://url | sh
like scripts.
License
The project is licensed under the terms of the MIT license.%