mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 04:19:31 +02:00
remove get_json methofd
This commit is contained in:
@@ -26,11 +26,6 @@ def callback():
|
|||||||
return redirect(url_for(".me"))
|
return redirect(url_for(".me"))
|
||||||
|
|
||||||
|
|
||||||
@app.route("/get_json/")
|
|
||||||
def get_json():
|
|
||||||
return discord.get_json()
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/me/")
|
@app.route("/me/")
|
||||||
def me():
|
def me():
|
||||||
user = discord.fetch_user()
|
user = discord.fetch_user()
|
||||||
@@ -41,7 +36,6 @@ def me():
|
|||||||
</head>
|
</head>
|
||||||
<body><img src='{user.avatar_url}' />
|
<body><img src='{user.avatar_url}' />
|
||||||
<a href={url_for("my_connections")}>Connections</a>
|
<a href={url_for("my_connections")}>Connections</a>
|
||||||
<a href={url_for("get_json")}>Get default JSON.</a>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user