feat: support API /dashboard/billing/credit_grants now (#45)

This commit is contained in:
JustSong
2023-05-10 09:28:41 +08:00
parent 8b056bf408
commit 3071300c0c
4 changed files with 43 additions and 5 deletions

View File

@@ -35,9 +35,4 @@ func SetRelayRouter(router *gin.Engine) {
relayV1Router.DELETE("/models/:model", controller.RelayNotImplemented)
relayV1Router.POST("/moderations", controller.RelayNotImplemented)
}
relayDashboardRouter := router.Group("/dashboard") // TODO: return system's own token info
relayDashboardRouter.Use(middleware.TokenAuth(), middleware.Distribute())
{
relayDashboardRouter.Any("/*path", controller.Relay)
}
}