I want to redirect to index.html when path /swagger
How can I achieve it ?
func New() {
r := gin.Default()
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
_ = ConnectDb(services.DdDsn())
r.Run(":8080")
}
I'm new in go and I don't know. I tried to write own handler to redirect to index.html, but got error