Skip to content

Commit

Permalink
fix: roles/listのエンドポイントが間違ってた
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Mar 11, 2023
1 parent 79b14e3 commit b595e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mipac/actions/admins/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def create(
async def get_list(self) -> list[Role]:
if self._client._config.use_version >= 13:
res: list[IRole] = await self._session.request(
Route('POST', '/api/roles/list'), auth=True, lower=True
Route('POST', '/api/admin/roles/list'), auth=True, lower=True
)
return [Role(i, client=self._client) for i in res]
raise NotSupportVersion(NotSupportVersionText)

0 comments on commit b595e83

Please sign in to comment.