forked from rDrama/rDrama
1
0
Fork 0

fix repeated endpoint

master
Aevann 2023-07-05 00:55:53 +03:00
parent fcb74c7c9b
commit 74695cfef8
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ const emojisSearchDictionary = {
// get public emojis list // get public emojis list
function fetchEmojis() { function fetchEmojis() {
const headers = new Headers({xhr: "xhr"}) const headers = new Headers({xhr: "xhr"})
return fetch("/emojis", { return fetch("/emojis_json", {
headers, headers,
}) })
.then(res => res.json()) .then(res => res.json())

View File

@ -83,7 +83,7 @@ def get_emojis():
collected.append(emoji.json()) collected.append(emoji.json())
return collected return collected
@app.get("/emojis") @app.get("/emojis_json")
@limiter.limit(DEFAULT_RATELIMIT) @limiter.limit(DEFAULT_RATELIMIT)
@limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID) @limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)
@auth_required @auth_required