No description
Find a file
Ivan Bushchik 4b22cdc7d1
0.2.1: bump smurf to 0.3.0
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-10-27 10:20:43 +03:00
src 0.2.1: bump smurf to 0.3.0 2023-10-27 10:20:43 +03:00
.gitignore Fork ivabus/aliurl 2023-06-20 21:02:27 +03:00
.rustfmt.toml Fork ivabus/aliurl 2023-06-20 21:02:27 +03:00
Cargo.toml 0.2.1: bump smurf to 0.3.0 2023-10-27 10:20:43 +03:00
LICENSE Add README.md and LICENSE 2023-06-21 08:57:00 +03:00
README.md 0.2.0: Add support to route requests with curl user-agent 2023-09-10 12:31:19 +03:00
Rocket.toml Fork ivabus/aliurl 2023-06-20 21:02:27 +03:00

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.%