Fix Cassandra Endpoint URLs by adding trailing slash in construction (#235)
This commit is contained in:
parent
4b0b63b56b
commit
f582887fd8
|
@ -307,7 +307,7 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||
authType === AuthType.EncryptedToken
|
||||
? Constants.CassandraBackend.guestQueryApi
|
||||
: Constants.CassandraBackend.queryApi;
|
||||
$.ajax(`${collection.container.extensionEndpoint()}${apiEndpoint}`, {
|
||||
$.ajax(`${collection.container.extensionEndpoint()}/${apiEndpoint}`, {
|
||||
type: "POST",
|
||||
data: {
|
||||
accountName: collection && collection.container.databaseAccount && collection.container.databaseAccount().name,
|
||||
|
@ -558,7 +558,7 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||
authType === AuthType.EncryptedToken
|
||||
? Constants.CassandraBackend.guestKeysApi
|
||||
: Constants.CassandraBackend.keysApi;
|
||||
let endpoint = `${collection.container.extensionEndpoint()}${apiEndpoint}`;
|
||||
let endpoint = `${collection.container.extensionEndpoint()}/${apiEndpoint}`;
|
||||
const deferred = Q.defer<CassandraTableKeys>();
|
||||
$.ajax(endpoint, {
|
||||
type: "POST",
|
||||
|
@ -613,7 +613,7 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||
authType === AuthType.EncryptedToken
|
||||
? Constants.CassandraBackend.guestSchemaApi
|
||||
: Constants.CassandraBackend.schemaApi;
|
||||
let endpoint = `${collection.container.extensionEndpoint()}${apiEndpoint}`;
|
||||
let endpoint = `${collection.container.extensionEndpoint()}/${apiEndpoint}`;
|
||||
const deferred = Q.defer<CassandraTableKey[]>();
|
||||
$.ajax(endpoint, {
|
||||
type: "POST",
|
||||
|
@ -667,7 +667,7 @@ export class CassandraAPIDataClient extends TableDataClient {
|
|||
authType === AuthType.EncryptedToken
|
||||
? Constants.CassandraBackend.guestCreateOrDeleteApi
|
||||
: Constants.CassandraBackend.createOrDeleteApi;
|
||||
$.ajax(`${explorer.extensionEndpoint()}${apiEndpoint}`, {
|
||||
$.ajax(`${explorer.extensionEndpoint()}/${apiEndpoint}`, {
|
||||
type: "POST",
|
||||
data: {
|
||||
accountName: explorer.databaseAccount() && explorer.databaseAccount().name,
|
||||
|
|
Loading…
Reference in New Issue