from datetime import date
from application.views import Index, Contacts, PageNotFound, Write_to_us

# Front controllers


def today(request):
    request["data"] = date.today()


def user_name(request):
    request["user"] = "User_1"


fronts = [today, user_name]

routes = {
    "/": Index(),
    "/contacts/": Contacts(),
    "/write/": Write_to_us(),
}

page_404 = PageNotFound()
