fix repeated endpoint

pull/166/head
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
function fetchEmojis() {
const headers = new Headers({xhr: "xhr"})
return fetch("/emojis", {
return fetch("/emojis_json", {
headers,
})
.then(res => res.json())

View File

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