|
|
@ -30,7 +30,7 @@ def index(): |
|
|
|
) |
|
|
|
return template |
|
|
|
|
|
|
|
@APP.route("/API/latest/<num>") |
|
|
|
@APP.route("/feeds/latest/<num>") |
|
|
|
def latest(num): |
|
|
|
feed = feedtools.latest(num) |
|
|
|
if flask.request.values.get("format") == 'md': |
|
|
@ -46,7 +46,7 @@ def latest(num): |
|
|
|
mimetype=mimetype_data |
|
|
|
) |
|
|
|
|
|
|
|
@APP.route("/API/today") |
|
|
|
@APP.route("/feeds/today") |
|
|
|
def today(): |
|
|
|
feed = feedtools.today() |
|
|
|
if flask.request.values.get("format") == 'md': |
|
|
@ -61,7 +61,7 @@ def today(): |
|
|
|
mimetype=mimetype_data |
|
|
|
) |
|
|
|
|
|
|
|
@APP.route("/API/past/<days>") |
|
|
|
@APP.route("/feeds/past/<days>") |
|
|
|
def past(days): |
|
|
|
feed = feedtools.past(days) |
|
|
|
if flask.request.values.get("format") == 'md': |
|
|
|