A lot of this code is just to play with Rust as a tool and see what it is capable of. I did this to understand how things like Mutex<>
and asynchronous references worked. I also tried to do this to put Rocket into practice as my main web framework for web development in Rust.
curl --request GET --url http://127.0.0.1:8000/
curl --request GET \
--url http://127.0.0.1:8000/new \
--header 'Content-Type: application/json' \
--data '{
"url": "www.yourwebpage.com",
"creator": "warkanlock"
}'
curl --request GET --url http://127.0.0.1:8000/{identifier}