static method
Implementation
void static(String expose, String route) {
Path path = Path(route.replaceAll('**', "<file_path:path>"));
_paths.add(path);
handler(Request req, Response resp) async {
String dir = pp.join(expose, req.pathParams['file_path']);
resp.sendFile(dir);
}
path.methods["ANY"] = PathMethod(
[],
handler: handler,
acceptedContentType: [],
);
}