Simple HTTP server.
-
Run the server:
go run main.go
-
Open http://localhost:9000/api/health in a browser or use
curl
:$ curl http://localhost:9000/api/health {"ok":true}
-
Add the music file to
files
:mkdir files && \ curl --location https://freemusicarchive.org/track/Marsel_Minga_-_01_-_Demonstration/download \ --output files/Marsel_Minga_-_01_-_Demonstration.mp3
-
Open http://localhost:9000/mp3 in a browser or use
curl
:curl http://localhost:9000/mp3 --output Marsel_Minga_-_01_-_Demonstration.mp3