summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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