draincloud-core/internal/app/app.go
2024-09-28 01:37:58 +03:00

29 lines
331 B
Go

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) {
}