Skip to content

Commit

Permalink
Made edison folder a module
Browse files Browse the repository at this point in the history
Added init file to edison folder to make it a module.
  • Loading branch information
DoRTaL94 committed Apr 25, 2020
1 parent 4e7656f commit 33b715c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions edison/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os

from flask import Flask


# Put app here so the entire app could import it.
app = Flask(__name__)
basedir = os.path.abspath(os.path.dirname(__file__))
9 changes: 7 additions & 2 deletions edison/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from flask import Flask, render_template
import edison

app = Flask(__name__)
from flask import render_template


# API description in swagger - https://app.swaggerhub.com/apis/DoRTaL94/UserManagment/1.0.0

app = edison.app

@app.route("/")
def index():
Expand Down

0 comments on commit 33b715c

Please sign in to comment.