def _create_app_without_api(cors: Optional[Union[Text, List[Text]]] = None): app = Sanic(__name__, configure_logging=False) add_root_route(app) CORS(app, resources={r"/*": {"origins": cors or ""}}, automatic_options=True) return app
def _create_app_without_api(cors: Optional[Union[Text, List[Text]]] = None): app = Sanic(__name__, configure_logging=False) server.add_root_route(app) server.configure_cors(app, cors) return app