Implemented job view
This commit is contained in:
@@ -24,15 +24,18 @@ if Config.SENTRY_DSN:
|
||||
# create flask app
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(Config)
|
||||
db.init_app(app)
|
||||
|
||||
# init stuffs
|
||||
k8s.init_app(app)
|
||||
register_all_error_handlers(app)
|
||||
|
||||
|
||||
@app.before_first_request
|
||||
def init_db():
|
||||
db.create_all()
|
||||
|
||||
|
||||
# register views
|
||||
for view in [JobView]:
|
||||
view.register(app, trailing_slash=False)
|
||||
|
||||
Reference in New Issue
Block a user