Skip to content

Commit

Permalink
fix: エンドポイントが間違っている
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Aug 29, 2022
1 parent 897433a commit b41bc0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mipac/manager/ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ async def create(
'image_url': image_url,
}
return await self.__session.request(
Route('POST', '/api/ad/create'), json=data, auth=True, lower=True
Route('POST', '/api/admin/ad/create'), json=data, auth=True, lower=True
)
4 changes: 2 additions & 2 deletions mipac/manager/moderator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def add(self, user_id: Optional[str] = None) -> bool:
user_id = user_id or self.__user_id
data = {'userId': user_id}
res = await self.__session.request(
Route('POST', '/api/moderators/add'),
Route('POST', '/api/admin/moderators/add'),
json=data,
auth=True,
lower=True,
Expand All @@ -65,7 +65,7 @@ async def remove(self, user_id: Optional[str] = None) -> bool:
user_id = user_id or self.__user_id
data = {'userId': user_id}
res = await self.__session.request(
Route('POST', '/api/moderators/remove'),
Route('POST', '/api/admin/moderators/remove'),
json=data,
auth=True,
lower=True,
Expand Down

0 comments on commit b41bc0b

Please sign in to comment.