cancel
Showing results for 
Search instead for 
Did you mean: 

Serving an HTML Page

Occasional Visitor

Serving an HTML Page

Is there any way to serve an HTML page to the user using a swagger generated server in golang? I've been looking online and through the docs for some way to do this and haven't found anything that's led me to a solution. I've also tried injecting the code normally used to serve html pages into the middleware stacks but to no avail. Help would be much appreciated, thank you.

Tags (5)
1 REPLY 1
New Contributor

Re: Serving an HTML Page

Hi! 
Are you trying to have the swagger ui load from inside your application? If that's it, my team did it, but I'm not entirely satisfied. lmk if you want more info.