Cleaner swagger routes

This commit is contained in:
2022-12-21 11:03:31 +01:00
parent 8582674b44
commit 2b4d77bab4
4 changed files with 8 additions and 26 deletions

View File

@@ -61,9 +61,7 @@ func (r *Router) Init(e *gin.Engine) {
docs := e.Group("/documentation")
{
docs.GET("/swagger", ginext.RedirectTemporary("/documentation/swagger/"))
docs.GET("/swagger/", ginresp.Wrap(swagger.Handle))
docs.GET("/swagger/:fn1", ginresp.Wrap(swagger.Handle))
docs.GET("/swagger/:fn1/:fn2", ginresp.Wrap(swagger.Handle))
docs.GET("/swagger/*sub", ginresp.Wrap(swagger.Handle))
}
// ================ Website ================