openpectus.aggregator.spa
Classes
Acts similar to the bripkens/connect-history-api-fallback |
Module Contents
- class openpectus.aggregator.spa.SinglePageApplication(directory, index='index.html')
Bases:
starlette.staticfiles.StaticFilesActs similar to the bripkens/connect-history-api-fallback NPM package.
- Parameters:
directory (str)
- index = 'index.html'
- __str__()
- Return type:
str
- lookup_path(path)
Returns the index file when no match is found.
- Args:
path (str): Resource path.
- Returns:
[tuple[str, os.stat_result]]: Always returns a full path and stat result.
- Parameters:
path (str)
- Return type:
Tuple[str, os.stat_result]