public function mount(string $resource, string $path = '/'): void
    {
        if (isset($this->mounts[$resource])) {
            throw new \RuntimeException(\sprintf('Duplicate mount of resource: %s', $resource));
        }
        
        $this->mounts[$resource] = '/' . \trim($path, '/');
    }