Hi everyone! Hope you’re having a great Saturday
I’m working through the API projects and I managed to write this URL shortener with the help of a bunch of tutorials, but I cannot get it to work. I’m obviously doing something horribly wrong but I’m still trying to wrap my head around GET and POST requests. Could someone please help me out?
This is what I’ve come up with so far:
EDIT: The error I’m getting is:
Cannot POST /api/shorturl/new
Thanks so much in advance!! I really appreciate it