29 lines
331 B
Go
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) {
|
|
|
|
}
|