예제 #1
0
파일: blueprints.py 프로젝트: smaxtec/faust
 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)
예제 #2
0
파일: blueprints.py 프로젝트: wuttem/faust
 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)