Skip to content

Commit

Permalink
chore(backend): change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
detj committed Dec 4, 2023
1 parent c161861 commit e3dd973
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion measure-backend/measure-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
r.Use(cors).POST("/teams/:id/apps", validateAccessToken(), createApp)
r.Use(cors).POST("/teams/:id/invite", validateAccessToken(), inviteMembers)
r.Use(cors).PATCH("/teams/:id/rename", validateAccessToken(), renameTeam)
r.Use(cors).GET("/teams/:id/authz", validateAccessToken(), getScopes)
r.Use(cors).GET("/teams/:id/authz", validateAccessToken(), getAuthzRoles)

r.Run(":8080") // listen and serve on 0.0.0.0:8080
}
2 changes: 1 addition & 1 deletion measure-backend/measure-go/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func renameTeam(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"ok": "team was renamed"})
}

func getScopes(c *gin.Context) {
func getAuthzRoles(c *gin.Context) {
userId := c.GetString("userId")
teamId, err := uuid.Parse(c.Param("id"))
if err != nil {
Expand Down

0 comments on commit e3dd973

Please sign in to comment.