Spaces:
Runtime error
Runtime error
Update app/__init__.py
Browse files- app/__init__.py +3 -2
app/__init__.py
CHANGED
|
@@ -9,8 +9,9 @@ def create_app():
|
|
| 9 |
app.config['SECRET_KEY'] = 'your-secret-key'
|
| 10 |
|
| 11 |
from .routes import auth
|
|
|
|
|
|
|
| 12 |
app.register_blueprint(auth)
|
|
|
|
| 13 |
|
| 14 |
return app
|
| 15 |
-
|
| 16 |
-
|
|
|
|
| 9 |
app.config['SECRET_KEY'] = 'your-secret-key'
|
| 10 |
|
| 11 |
from .routes import auth
|
| 12 |
+
from .routes import api
|
| 13 |
+
|
| 14 |
app.register_blueprint(auth)
|
| 15 |
+
app.register_blueprint(api, url_prefix='/api')
|
| 16 |
|
| 17 |
return app
|
|
|
|
|
|