Forum Discussion

Tristan's avatar
Tristan
Occasional Visitor
6 years ago

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.

  • ddostlind's avatar
    ddostlind
    New Contributor

    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.