OpServ-Monitoring/opserv-backend

View on GitHub
app/server/static_hosting/static_hosting_management.py

Summary

Maintainability
A
0 mins
Test Coverage
from server.static_hosting.extensionless_static_file_handler import ExtensionlessStaticFileHandler


class StaticHostingManagement:
    @classmethod
    def get_handlers(cls) -> list:
        return [
            (
                "/(.*)/*",
                ExtensionlessStaticFileHandler,
                {
                    "path": "server/static_hosting/public",
                    "default_filename": "index.html",
                    "default_extension": ".html"
                }
            )
        ]