shelf icon indicating copy to clipboard operation
shelf copied to clipboard

Is it possible to add an allowFallback parameter to enable history mode?

Open 0x1af2aec8f957 opened this issue 1 year ago • 2 comments

https://github.com/dart-lang/shelf/blob/b3adc7c5264b448a77427c6aacd67eedfb16dce2/pkgs/shelf_static/lib/src/static_handler.dart#L76

Is it possible to add an allowFallback parameter to enable history mode?

example: fileFound = _tryDefaultFile(allowFallback ? fileSystemPath : fsPath, defaultDocument);

Implement functionality similar to connect-history-api-fallback, which is important for integrating applications like Vue or React.

0x1af2aec8f957 avatar Dec 13 '23 09:12 0x1af2aec8f957