From 3d481687fb55d3261c45fca644b805a622c481a0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 2 Apr 2013 00:40:01 +0300 Subject: [PATCH] next --- README.rst | 3 ++- atom.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 6996976..551483e 100644 --- a/README.rst +++ b/README.rst @@ -45,4 +45,5 @@ Unclear The following items are currently unclear and need to be fully thought out: -- Editing on the frontend. Perhaps admin.kennethreitz.org? I think I'd like it to just be built in. \ No newline at end of file +- Editing on the frontend. Perhaps admin.kennethreitz.org? I think I'd like it to just be built in. +- Look into Twilio's Flask Rest thing. \ No newline at end of file diff --git a/atom.py b/atom.py index e69de29..16f1887 100644 --- a/atom.py +++ b/atom.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +import requests + +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello_world(): + return 'Hello World!' + + +@app.route('/content/') +def get_content(uuid): + pass + +# TODO: .rss? +@app.route('/.atom') +def get_collection_feed(collection): + pass + +@app.route('//.atom') +def get_category_feed(collection, category): + pass + + + +if __name__ == '__main__': + app.run() \ No newline at end of file