Skip to content

Commit

Permalink
fakeサーバでのステータス誤り修正: 201 => 200 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Mar 24, 2022
1 parent e04fbf8 commit 2a3ee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fake/server/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func (s *Server) DeletePermission(c *gin.Context, siteId string, permissionId v1
c.Status(http.StatusNoContent)
}

// ReadPermission パーミッションの取得
// GetPermission パーミッションの取得
// (GET /{site_name}/v2/permissions/{id})
func (s *Server) GetPermission(c *gin.Context, siteId string, permissionId v1.PermissionID) {
permission, err := s.Engine.ReadPermission(siteId, permissionId.Int64())
if err != nil {
s.handleError(c, err)
return
}
c.JSON(http.StatusCreated, &v1.PermissionResponseBody{
c.JSON(http.StatusOK, &v1.PermissionResponseBody{
Data: *permission,
})
}
Expand Down

0 comments on commit 2a3ee1d

Please sign in to comment.