Skip to content

vsoct/url-shortener-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener-be

Getting our hands wet by learning how to build a URL shortener with Rust🦀

API Endpoint

https://url-shortener-vs.herokuapp.com

Available routes

Route Method Description Working
/ GET Returns server health status ✅
/ POST Shortens a url. Body format: {"url" : "https://villagesquare.com"} ✅
/{id} GET Expands and redirects a shortened url ✅
/admin/urls GET Returns the current list of shortened urls ✅
/admin/urls/{id} DELETE Deletes a shortened url entry by id ✅

.env

BASE_URL=http://127.0.0.1:8080
HOST=127.0.0.1
PORT=8080

About

Getting our hands wet with Rust🦀by building a URL shortener

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •