forked from MarseyWorld/MarseyWorld
emojis_json -> emojis.json
parent
7140e9670a
commit
b04147e4a3
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue