This is a public copy of OIH URL Shortener which runs on oih.me
currently.
First you should execute the latest SQL script in the directory ./sql
for database.
Then make sure you have installed Rust toolchain.
cargo run
cargo run --release
or
cargo build --release
and then execute binary file in ./target/release
Params in request body:
url
Redirect to theretoken
(Optional) custom short token
INSERT INTO `short_token` (`token`,`target`) VALUES (:token,:target)
DATABASE_URL
A URL that describes MySQL server connection information.
ROCKET_*
Check Rocket.rs for details.