Implemented job view

This commit is contained in:
2021-04-19 01:34:33 +02:00
parent 998658c148
commit 800ed14449
9 changed files with 289 additions and 44 deletions

View File

@@ -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)