This repository has been archived on 2018-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
twtxt-registry/app.py

14 lines
245 B
Python
Raw Normal View History

2018-10-14 03:51:10 +00:00
from flask import *
app = Flask(__name__)
2018-10-14 03:57:12 +00:00
tweets = ["test\thttps://example.org/blah.txt\t2018-10-13T23:55:36-04:00\tfuck"]
2018-10-14 03:51:10 +00:00
@app.route("/")
def index():
return "wewlad"
2018-10-14 03:57:12 +00:00
@app.route("/api/plain/tweets")
def tweets():
return "\n".join(tweets)