Added hack to allow only specified path for api