cslms-api/internal/controllers/swagger.go
2023-12-27 17:31:49 +09:00

23 lines
360 B
Go

package controllers
import (
"net/http"
"github.com/gin-gonic/gin"
)
type SwaggerController interface {
Get(*gin.Context)
}
type swaggerController struct {
}
func NewSwaggerController() SwaggerController {
return &swaggerController{}
}
func (controller *swaggerController) Get(c *gin.Context) {
c.Redirect(http.StatusFound, "/swagger/index.html")
}