mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-28 20:33:42 +08:00
feat: support API /dashboard/billing/credit_grants now (#45)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user