Browse Source

Adds blog blueprint

Jose Reyes 6 years ago
parent
commit
6f8a20c6ae
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      flaskr/__init__.py

+ 4
- 0
flaskr/__init__.py View File

@@ -28,5 +28,9 @@ def create_app(test_config=None):
28 28
     from . import auth
29 29
     app.register_blueprint(auth.bp)
30 30
 
31
+    from . import blog
32
+    app.register_blueprint(blog.bp)
33
+    app.add_url_rule('/', endpoint='index')
34
+
31 35
     return app
32 36