draincloud-core/internal/app/app.go

29 lines
331 B
Go
Raw Normal View History

2024-09-27 22:37:58 +00:00
package app
import (
"github.com/gin-gonic/gin"
)
type DrainCloud struct {
mux *gin.Engine
}
func New() *DrainCloud {
mux := gin.Default()
d := new(DrainCloud)
authGroup := mux.Group("/auth")
{
authGroup.POST("/register", d.Register)
}
d.mux = mux
return d
}
func (d *DrainCloud) Register(ctx *gin.Context) {
}