mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 13:00:14 +09:00
22 lines
566 B
Go
22 lines
566 B
Go
package auth
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func Register(app *gin.RouterGroup) {
|
|
app.Any("/", IndexAPI)
|
|
app.POST("/verify", VerifyAPI)
|
|
app.POST("/reset", ResetAPI)
|
|
app.POST("/register", RegisterAPI)
|
|
app.POST("/login", LoginAPI)
|
|
app.POST("/state", StateAPI)
|
|
app.GET("/apikey", KeyAPI)
|
|
app.POST("/resetkey", ResetKeyAPI)
|
|
app.GET("/package", PackageAPI)
|
|
app.GET("/quota", QuotaAPI)
|
|
app.POST("/buy", BuyAPI)
|
|
app.GET("/subscription", SubscriptionAPI)
|
|
app.POST("/subscribe", SubscribeAPI)
|
|
app.GET("/invite", InviteAPI)
|
|
app.GET("/redeem", RedeemAPI)
|
|
}
|