Implementation with some personal additions, of the web application described in this amazing book: Zero To Production In Rust.
The application exposes the following routes until 20 July 2021 (when the DigitalOcean promo credit expires).
# the health check
curl https://newsletter-5nmom.ondigitalocean.app/health_check
# pending subscription
curl -vv -X POST https://newsletter-5nmom.ondigitalocean.app/subscriptions -d "name=alan%20turing&email=alan_turing%40apple.com"
# confirm subscription
curl -vv https://newsletter-5nmom.ondigitalocean.app/subscriptions/confirm?subscription_token=random-id-sent-by-email