Closed rasfa98 closed 5 years ago
Hey @rasfa98 😄 This looks great! Almost as minimal as it can get.
Just a couple of suggestions:
@kshitij10496 Thanks! I will fix it according to your suggestions! 😄
Waiting on another +1 before merging this in!
cc @icyflame @Ayushk4 @themousepotato @thealphadollar
LGTM too :+1:
@rasfa98 It would be great if you add the mechanism to deliver the page when someone opens the url /api/v1
.
This might help, https://stackoverflow.com/questions/26559557/how-do-you-serve-a-static-html-file-using-a-go-web-server
The reason why I would like it to be the landing page for /api/v1
and not /
is that in future we may have more versions of the API and different landing pages for them.
I have never written anything in GO but I will give it a shot! 😄
I guess that's even better then :smile:
@thealphadollar It may be a better idea if someone with a bit more experience with GO could fix this since I do not have time to setup the environment right now 😄 You could merge this PR and then open a new issue 😃
@rasfa98 @thealphadollar I will open a new issue for adding a handler in order to render the static page. 😃 Merging this in!