mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
a0fcda018c
Re-init all servers when adding a server server builder tested well. Next is importing a server
18 lines
420 B
Python
18 lines
420 B
Python
import logging
|
|
|
|
from app.classes.web.base_handler import BaseHandler
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class DefaultHandler(BaseHandler):
|
|
|
|
# Override prepare() instead of get() to cover all possible HTTP methods.
|
|
def prepare(self, page=None):
|
|
if page is not None:
|
|
self.set_status(404)
|
|
self.render("public/404.html")
|
|
else:
|
|
self.redirect("/public/login")
|
|
|