feat: Move IAM configuration file creation on backend running, set up… (#89)

* feat: Move IAM configuration file creation on backend running
This commit is contained in:
Jon Austin
2023-06-13 22:13:18 +04:00
committed by GitHub
parent 16a9b6b507
commit 1bcdf948ba
3 changed files with 32 additions and 21 deletions

View File

@@ -25,10 +25,6 @@ type AdminController struct {
IAMService auth.IAMService
}
func NewAdminController() AdminController {
return AdminController{IAMService: auth.New()}
}
func (c AdminController) CreateUser(ctx *fiber.Ctx) error {
access, secret, role, region := ctx.Query("access"), ctx.Query("secret"), ctx.Query("role"), ctx.Query("region")
requesterRole := ctx.Locals("role")