forked from rDrama/rDrama
fix repeated endpoint
parent
fcb74c7c9b
commit
74695cfef8
|
@ -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())
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue