Desperately need help with my URL Shortener Microservice

Desperately need help with my URL Shortener Microservice
0.0 0

#1

Hey Fellow FreeCodeCampers, I’m currently doing the URL shortener microservice api project and I need a bit of help.

I’ve got most of my code running but when I add a url to the end of the api route (i.e. https://morning-retreat-24523.herokuapp.com/new/https://www.google.com) a forward slash gets removed so that it ends up as: https://morning-retreat-24523.herokuapp.com/new/https:/www.google.com and then throws a 404 page not found error. How do other apps get around this?

My github repo is here (warning, it is in Go, but I’m hoping people can still help): https://github.com/AndrewRMorgan/url-shortener