feat: localize license states and restore revoked licenses
Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
@@ -101,6 +101,7 @@ func registerBusinessRoutes(r *gin.Engine, a *BusinessAPI) {
|
||||
secured.POST("/instances/:instance_id/freeze", a.freezeInstance)
|
||||
secured.POST("/licenses", a.issueLicense)
|
||||
secured.POST("/licenses/:id/revoke", func(c *gin.Context) { a.operateLicense(c, "revoke") })
|
||||
secured.POST("/licenses/:id/restore", func(c *gin.Context) { a.operateLicense(c, "restore") })
|
||||
secured.POST("/licenses/:id/renew", func(c *gin.Context) { a.operateLicense(c, "renew") })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user