Configurable base for API + removing extra slashes