Skip to content

Commit 28688e1

Browse files
committed
Create index to call index.html
1 parent 0cc72dd commit 28688e1

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

app/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030

3131
#Load modules
3232
from app.mod_photos.controllers import mod_photos as photos_module
33+
from app.mod_main.controllers import mod_main as main_module
3334

3435
app.register_blueprint(photos_module)
36+
app.register_blueprint(main_module)
3537

3638

3739

app/mod_main/.controllers.py.swo

12 KB
Binary file not shown.

app/mod_main/__init__.py

Whitespace-only changes.

app/mod_main/controllers.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from flask import Blueprint, request, render_template, flash, g, session, redirect, url_for, jsonify, json
2+
from app import app
3+
4+
import os
5+
6+
7+
mod_main = Blueprint('main',__name__,url_prefix='/')
8+
9+
10+
11+
@mod_main.route('/',methods=['POST','GET'])
12+
def index():
13+
return render_template('index.html')

0 commit comments

Comments
 (0)