diff --git a/composer.json b/composer.json index dbc22fb..ad56dca 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "codeinc/assets-middleware", - "version": "1.0.0", + "version": "1.0.1", "description": "A PSR-15 middleware to server static assets (CSS, JS, images, etc.)", "homepage": "https://github.com/CodeIncHQ/AssetsMiddleware", "type": "library", diff --git a/src/AssetsMiddleware.php b/src/AssetsMiddleware.php index 349436c..2cdb8f4 100644 --- a/src/AssetsMiddleware.php +++ b/src/AssetsMiddleware.php @@ -156,4 +156,15 @@ public function getAssetPath(string $assetName):string } return $this->assetsLocalPath.DIRECTORY_SEPARATOR.$assetName; } + + /** + * Returns an assets URI path. + * + * @param string $asset + * @return string + */ + public function getAssetUriPath(string $asset):string + { + return $this->assetsUriPath.$asset; + } } \ No newline at end of file