urouter/README.md
Ivan Bushchik fc1ebcbe60
0.2.0: Add support to route requests with curl user-agent
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-09-10 12:31:19 +03:00

40 lines
No EOL
643 B
Markdown

# urouter
Fork of [ivabus/aliurl](https://github.com/ivabus/aliurl) that routes statically.
## Installation
```shell
git clone https://github.com/ivabus/urouter
cd urouter
```
Edit `alias.json` and `cargo run`
## `alias.json` example
```json
[
{
"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](./LICENSE).%