CostaCoffe/handler.py

22 lines
529 B
Python
Raw Normal View History

2022-03-16 11:06:52 +07:00
import cherrypy
import cherrypy_cors
2022-03-16 11:06:52 +07:00
import json
import core.authentication as authentication
import config.globalvar as globalvar
import config.template as pages
import modules.user.home as user_home
@cherrypy.tools.accept(media="application/json")
2022-03-16 11:06:52 +07:00
class handler(pages.main):
def __init__(self):
pages.main.__init__(self)
def index(self, **kwargs):
kwargs["params_page"] = pages.main().user("home")
return user_home.main().html(kwargs)
index.exposed = True