Browse Source

changing "API" to "feeds"

master
mb 3 years ago
parent
commit
357e9281c5
  1. 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…
Cancel
Save