statics
Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible. If requested resource doesn't exist and index is not null, then response will be index resource in the requested package. If requested resource doesn't exist and no index specified, response will be 404 Not Found
.
On JVM, staticResources is used by default. If you want to use files from some directory instead of .jar file, use com.sanyavertolet.statics.alternativeStatics (not recommended)
Parameters
http path that defines requests that fetch statics
directory where all the statics are stored
name of a fallback file
Behaves just as staticResources(remotePath, basePackage, index)
If statics are located outside the .jar
, use alternativeStatics(remotePath, basePackage, index)
See also
Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible. If requested resource doesn't exist and index is not null, then response will be index resource in the requested package. If requested resource doesn't exist and no index specified, response will be 404 Not Found
.
Parameters
http path that defines requests that fetch statics
directory where all the statics are stored
name of a fallback file