summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiusz 'q3k' Bazański <q3k@q3k.org>2014-12-07 12:44:58 +0100
committerSergiusz 'q3k' Bazański <q3k@q3k.org>2014-12-07 12:44:58 +0100
commit591923f05f1bca292e3fbbbf246aeb1e7c87386a (patch)
treece9ac1b2e350a474b5e0caacc8e4e7986340fae1
parent5f723e31a33dd8b6ff433e1badef1b68c5665b94 (diff)
downloadwww-main-591923f05f1bca292e3fbbbf246aeb1e7c87386a.tar.gz
www-main-591923f05f1bca292e3fbbbf246aeb1e7c87386a.tar.bz2
www-main-591923f05f1bca292e3fbbbf246aeb1e7c87386a.zip
Add /card URL placeholder.
-rw-r--r--main.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.py b/main.py
index b92a9a2..31b0803 100644
--- a/main.py
+++ b/main.py
@@ -5,7 +5,7 @@ import requests
import string
import random
import json
-from flask import Flask, render_template, request, flash, session, abort, jsonify
+from flask import Flask, render_template, request, flash, session, abort, jsonify, redirect
from time import mktime, strftime
from datetime import datetime
@@ -83,6 +83,12 @@ def about_en():
parse_subscribe_requests()
return render_template('about_en.html', entries=pull_feed_entries())
+@app.route('/card', methods=['GET', 'POST']_
+def card():
+ # redirect to homepage for now - will maybe be an API endpoint for the new
+ # membership card in the future
+ return redirect('https://hackerspace.pl/')
+
@app.route('/spaceapi')
def spaceapi():
space_open = None