nhymxu / url-shortener-rust

Simple URL shortener writing using Rust
0 stars 0 forks source link

init simple version #1

Closed nhymxu closed 2 years ago

nhymxu commented 2 years ago

First version very easy for learning Rust

  1. GET route /go/<id> read full url from Database using <id> and redirect to url
  2. POST route /short receive full url on body and insert to DB. response is id of inserted record