""" Demo resource for the OpenEventDatabase. """ import falcon from oedb.utils.logging import logger class DemoResource: """ Resource for the demo endpoint. Handles the /demo endpoint. """ def on_get(self, req, resp): """ Handle GET requests to the /demo endpoint. Returns an HTML page with a MapLibre map showing current events. Args: req: The request object. resp: The response object. """ logger.info("Processing GET request to /demo") try: # Set content type to HTML resp.content_type = 'text/html' # Create HTML response with MapLibre map html = """