forked from varia/multifeeder
changing "API" to "feeds"
This commit is contained in:
parent
85ab4670b1
commit
357e9281c5
6
start.py
6
start.py
@ -30,7 +30,7 @@ def index():
|
|||||||
)
|
)
|
||||||
return template
|
return template
|
||||||
|
|
||||||
@APP.route("/API/latest/<num>")
|
@APP.route("/feeds/latest/<num>")
|
||||||
def latest(num):
|
def latest(num):
|
||||||
feed = feedtools.latest(num)
|
feed = feedtools.latest(num)
|
||||||
if flask.request.values.get("format") == 'md':
|
if flask.request.values.get("format") == 'md':
|
||||||
@ -46,7 +46,7 @@ def latest(num):
|
|||||||
mimetype=mimetype_data
|
mimetype=mimetype_data
|
||||||
)
|
)
|
||||||
|
|
||||||
@APP.route("/API/today")
|
@APP.route("/feeds/today")
|
||||||
def today():
|
def today():
|
||||||
feed = feedtools.today()
|
feed = feedtools.today()
|
||||||
if flask.request.values.get("format") == 'md':
|
if flask.request.values.get("format") == 'md':
|
||||||
@ -61,7 +61,7 @@ def today():
|
|||||||
mimetype=mimetype_data
|
mimetype=mimetype_data
|
||||||
)
|
)
|
||||||
|
|
||||||
@APP.route("/API/past/<days>")
|
@APP.route("/feeds/past/<days>")
|
||||||
def past(days):
|
def past(days):
|
||||||
feed = feedtools.past(days)
|
feed = feedtools.past(days)
|
||||||
if flask.request.values.get("format") == 'md':
|
if flask.request.values.get("format") == 'md':
|
||||||
|
Loading…
Reference in New Issue
Block a user