From 097ad33a05a3089dd6e684a494e6f61ab539d56c Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 14 Apr 2021 17:03:25 +0100 Subject: removed API function --- app.py | 14 -------------- static/images/Thumbs.db | Bin 0 -> 10240 bytes static/images/icons.png | Bin 0 -> 46132 bytes static/images/newdiscord.jpg | Bin 0 -> 56309 bytes static/images/random.jpg | Bin 238653 -> 169006 bytes static/index.md | 1 + 6 files changed, 1 insertion(+), 14 deletions(-) create mode 100755 static/images/Thumbs.db create mode 100755 static/images/icons.png create mode 100755 static/images/newdiscord.jpg diff --git a/app.py b/app.py index ea1a2be..13431f7 100644 --- a/app.py +++ b/app.py @@ -162,20 +162,6 @@ def serve_random(): localimg = "/img/random.jpg?seed=%i" % random.randint(0, 9999) ) -@app.route("/api/") -def serve_api_request(infoRequest): - if infoRequest == "commits": - try: - return flask.jsonify(services.request_recent_commits(since = datetime.datetime.fromtimestamp(int(flask.request.args['since'])))) - except (ValueError, KeyError): - flask.abort(400) - elif infoRequest == "tweets": - try: - return flask.jsonify(services.request_recent_tweets(int(flask.request.args['toGet']))) - except (ValueError, KeyError): - flask.abort(400) - else: - flask.abort(404) @app.route("/preview") def preview(): diff --git a/static/images/Thumbs.db b/static/images/Thumbs.db new file mode 100755 index 0000000..4311b3b Binary files /dev/null and b/static/images/Thumbs.db differ diff --git a/static/images/icons.png b/static/images/icons.png new file mode 100755 index 0000000..4f19e72 Binary files /dev/null and b/static/images/icons.png differ diff --git a/static/images/newdiscord.jpg b/static/images/newdiscord.jpg new file mode 100755 index 0000000..d446602 Binary files /dev/null and b/static/images/newdiscord.jpg differ diff --git a/static/images/random.jpg b/static/images/random.jpg index 71612f3..fe9b86f 100755 Binary files a/static/images/random.jpg and b/static/images/random.jpg differ diff --git a/static/index.md b/static/index.md index ddf9ce9..1c7e3e9 100644 --- a/static/index.md +++ b/static/index.md @@ -9,3 +9,4 @@ i'll post my thoughts on here sometimes, and use this site to link to other stuf - [invidious - youtube alternative](https://invidious.eda.gay) - [nitter - alternative twitter frontend](https://nitter.eda.gay) - [gitea - github alternative](https://git.eda.gay/) +- [bibliogram - less annoying instagram front end](https://bibliogram.eda.gay/applysettings/c8009ec7533d542a90bb1d41563435c1) -- cgit v1.2.3