Added blog function
This commit is contained in:
parent
6a977de2ad
commit
6dd4af8228
@ -25,7 +25,7 @@ def guess(name):
|
||||
return render_template('guess.html', name=name, gender=gender, age=age)
|
||||
|
||||
@app.route('/blog')
|
||||
def blog():
|
||||
def get_blog():
|
||||
blog_url = "https://api.npoint.io/c790b4d5cab58020d391"
|
||||
blog_response = requests.get(blog_url)
|
||||
all_posts = blog_response.json()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user