1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Rudimentary start page

This commit is contained in:
Krateng
2019-02-02 16:54:01 +01:00
parent 4edc352bcc
commit 562c796a92
5 changed files with 182 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
from bottle import Bottle, route, get, post, error, run, template, static_file, request, response, FormsDict
from bottle import Bottle, route, get, post, error, run, template, static_file, request, response, FormsDict, redirect, template
from importlib.machinery import SourceFileLoader
from htmlgenerators import removeIdentical
from utilities import *
@@ -23,7 +23,7 @@ webserver = Bottle()
@webserver.route("")
@webserver.route("/")
def mainpage():
return static_file("main.html",root="")
return static_html("start")
# this is the fallback option. If you run this service behind a reverse proxy, it is recommended to rewrite /db/ requests to the port of the db server