changing "API" to "feeds"

This commit is contained in:
mb 2022-05-18 14:14:27 +02:00
parent 85ab4670b1
commit 357e9281c5

View File

@ -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':