Reimported render_template in main, for development purposes for now, and fixed /api endpoint not working
This commit is contained in:
@@ -39,6 +39,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
rewrite ^/api/(.*)$ /$1 break;
|
||||||
proxy_pass http://web_server:5000; # flask-app is the name of the Flask container in docker-compose
|
proxy_pass http://web_server:5000; # flask-app is the name of the Flask container in docker-compose
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from flask import Blueprint
|
from flask import Blueprint, render_template
|
||||||
|
|
||||||
main_bp = Blueprint("app", __name__)
|
main_bp = Blueprint("app", __name__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user