devour-js/devour-client

trailing slash when path is empty

Opened this issue · 2 comments

There's no way to not have a slash when path is empty,

return `${this.apiUrl}/${path}${slash}`

@x-yuri What would be the use case where path would be empty?

@Auspicus If I could remember... The only thing I can think of is if I can be sure that trailing slash is never added, I can do this.urlFor() + '/something'.