mirror of
https://github.com/kennethreitz-archive/atom.git
synced 2026-06-05 15:20:18 +00:00
34 lines
586 B
Python
34 lines
586 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import requests
|
|
|
|
from flask import Flask
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def hello_world():
|
|
return 'Hello World!'
|
|
|
|
|
|
def get_collection_view():
|
|
pass
|
|
|
|
@app.route('/content/<uuid>')
|
|
def get_content(uuid):
|
|
# Grab the content from elephant.
|
|
# Return it with appropriate content-type
|
|
# Flask-Negotations
|
|
|
|
# TODO: .rss?
|
|
@app.route('/<collection>.atom')
|
|
def get_collection_feed(collection):
|
|
pass
|
|
|
|
@app.route('/<collection>/<category>.atom')
|
|
def get_category_feed(collection, category):
|
|
pass
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run() |