From 5494fc2e9a2d6f52661f4aeb5a02af756fd7e2f1 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Sun, 16 Oct 2016 00:06:16 +0200 Subject: [PATCH] added jobs as placeholder --- config.py.example | 2 ++ jobs.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/config.py.example b/config.py.example index ec3ed60..40679cb 100644 --- a/config.py.example +++ b/config.py.example @@ -18,6 +18,8 @@ SQLITE_DB = 'db.sqlite' SQLITE_INIT_SCHEMA = True SQLITE_INIT_DATA = False +#JOBS_API_KEY = 'something random' + #LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de' #ICAL_URL = 'https://user:password@mail.fsmpi.rwth-aachen.de/SOGo/....ics' ERROR_PAGE = 'static/500.html' diff --git a/jobs.py b/jobs.py index e3b2515..8fea7a8 100644 --- a/jobs.py +++ b/jobs.py @@ -7,3 +7,9 @@ import traceback def jobs_overview(): # todo return render_template('base.html') + +@app.route('/jobs/api', methods=['GET', 'POST']) +@mod_required +def jobs_api(): + # todo + return render_template('base.html') -- GitLab