mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
18 lines
266 B
PHP
18 lines
266 B
PHP
<?php
|
|
|
|
namespace Grocy\Helpers;
|
|
|
|
class UrlManager
|
|
{
|
|
public function __construct(string $basePath) {
|
|
$this->BasePath = $basePath;
|
|
}
|
|
|
|
protected $BasePath;
|
|
|
|
public function ConstructUrl($relativePath)
|
|
{
|
|
return rtrim($this->BasePath, '/') . $relativePath;
|
|
}
|
|
}
|