withStaticFiles
Method
interface YarpResource { // ... omitted for brevity withStaticFiles(sourcePath?: string): YarpResource;}Signature
method
withStaticFiles builder Enables static file serving in the YARP resource.
withStaticFiles(sourcePath?: string): YarpResourceParameters
sourcePath string optional Returns
YarpResource Applies to
This method applies to the following types: