aboutsummaryrefslogtreecommitdiff
path: root/backend/Admin.py
blob: b88f4c7fedc86a062f55cbaab6d3e531c530c368 (plain)
1
2
3
4
5
6
7
8
9
import config
from utils import redirect

def route(path, env, post):
	user = config.Auth.get(env)
	if not user:
		return redirect("/")
	# TBD
	return ["Admin panel for " + user["user"], [('Content-Type','text/html')], "200 OK"]