Restrict static server to app_path s

This commit is contained in:
Garrett Mills 2020-09-05 11:37:30 -05:00
parent e2efc6f39f
commit 34863a26a7
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -53,7 +53,7 @@ export default class StaticServer extends Middleware {
* @return string * @return string
*/ */
protected resolve(asset_dir: string, rel_file: string): UniversalPath { protected resolve(asset_dir: string, rel_file: string): UniversalPath {
return this.app.path(asset_dir, rel_file) return this.app.app_path(asset_dir, rel_file)
} }
/** /**