mirror of https://gitlab.com/litecord/litecord.git
run: replace member/banned/target to user in api_index
This commit is contained in:
parent
52c2fdb771
commit
437f8de643
5
run.py
5
run.py
|
|
@ -231,6 +231,11 @@ async def api_index(app):
|
||||||
path = path.replace('>', '}')
|
path = path.replace('>', '}')
|
||||||
path = path.replace('int:', '')
|
path = path.replace('int:', '')
|
||||||
|
|
||||||
|
# change our parameters into user.id
|
||||||
|
path = path.replace('member.id', 'user.id')
|
||||||
|
path = path.replace('banned.id', 'user.id')
|
||||||
|
path = path.replace('target.id', 'user.id')
|
||||||
|
|
||||||
methods = rule.methods
|
methods = rule.methods
|
||||||
|
|
||||||
for method in methods:
|
for method in methods:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue