emojis_json -> emojis.json

pull/216/head
Aevann 2023-10-26 18:25:05 +03:00
parent 7140e9670a
commit b04147e4a3
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_json", {
return fetch("/emojis.json", {
headers,
})
.then(res => res.json())

View File

@ -111,7 +111,7 @@ def get_emojis(nsfw):
collected.append(emoji.json())
return collected
@app.get("/emojis_json")
@app.get("/emojis.json")
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required