costapy/handler.py
Dita Aji Pratama 39b01c5280 Minor change
2024-01-13 11:57:50 +07:00

16 lines
404 B
Python
Executable File

import cherrypy
import json
import config.directory as directory
import templates.bare.main as bare
import modules.public.home as public_home
@cherrypy.tools.accept(media="application/json")
class handler():
def index(self, **kwargs):
kwargs["mako_website"] = basic_bootstrap.main(directory.page["public"], "home")
return public_home.main().html(kwargs)
index.exposed = True