Method
Router.MapFileSystem
MapFileSystem(string, string) #
Maps a file system route.
public void MapFileSystem(string routePath, string rootDirectory)Parameters #
routePath string
The route path that exposes the file system handler.
rootDirectory string
The root directory to serve.
MapFileSystem(string, HttpFileServerHandler, IRequestHandler[]?) #
Maps a file system route using a custom handler.
public void MapFileSystem(string routePath, HttpFileServerHandler fileServerHandler, IRequestHandler[]? requestHandlers = null)Parameters #
routePath string
The route path that exposes the file system handler.
fileServerHandler HttpFileServerHandler
The file system handler.
requestHandlers IRequestHandler[]?
Handlers that run before or after the route action.