Exemple #1
0
 def _apply_static_route(self, web: Web, route: FutureStaticRoute,
                         url_prefix: Optional[str]) -> None:
     uri = self._url_with_prefix(route.uri, url_prefix)
     web.add_static(uri, route.file_or_directory)
Exemple #2
0
 def _apply_static_route(self, web: Web, route: FutureStaticRoute,
                         url_prefix: Optional[str]) -> None:
     uri = url_prefix + route.uri if url_prefix else route.uri
     web.add_static(uri, route.file_or_directory)