Add support for registering vendor asset routes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-07-07 22:50:48 -05:00
parent 39d97d6e14
commit e33d8dee8f
10 changed files with 142 additions and 14 deletions

View File

@@ -497,14 +497,14 @@ export class UniversalPath {
* Get the mime-type of this resource.
*/
get mimeType(): string | false {
return mime.lookup(this.resourceLocalPath)
return mime.lookup(this.toBase)
}
/**
* Get the content-type header of this resource.
*/
get contentType(): string | false {
return mime.contentType(this.resourceLocalPath)
return mime.contentType(this.toBase)
}
/**