Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/UmbracoExtension/Client/src/api/client.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;

export const client = createClient(createConfig<ClientOptions2>({
baseUrl: 'https://localhost:44394'
baseUrl: 'https://localhost:44339'
}));
10 changes: 5 additions & 5 deletions templates/UmbracoExtension/Client/src/api/sdk.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
meta?: Record<string, unknown>;
};

export class WebsiteClientService {
export class UmbracoExtensionService {
public static ping<ThrowOnError extends boolean = false>(options?: Options<PingData, ThrowOnError>) {
return (options?.client ?? client).get<PingResponses, PingErrors, ThrowOnError>({
security: [
Expand All @@ -27,7 +27,7 @@ export class WebsiteClientService {
type: 'http'
}
],
url: '/umbraco/websiteclient/api/v1/ping',
url: '/umbraco/umbracoextension/api/v1/ping',
...options
});
}
Expand All @@ -40,7 +40,7 @@ export class WebsiteClientService {
type: 'http'
}
],
url: '/umbraco/websiteclient/api/v1/whatsMyName',
url: '/umbraco/umbracoextension/api/v1/whatsMyName',
...options
});
}
Expand All @@ -53,7 +53,7 @@ export class WebsiteClientService {
type: 'http'
}
],
url: '/umbraco/websiteclient/api/v1/whatsTheTimeMrWolf',
url: '/umbraco/umbracoextension/api/v1/whatsTheTimeMrWolf',
...options
});
}
Expand All @@ -66,7 +66,7 @@ export class WebsiteClientService {
type: 'http'
}
],
url: '/umbraco/websiteclient/api/v1/whoAmI',
url: '/umbraco/umbracoextension/api/v1/whoAmI',
...options
});
}
Expand Down
10 changes: 5 additions & 5 deletions templates/UmbracoExtension/Client/src/api/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
baseUrl: 'https://localhost:44394' | (string & {});
baseUrl: 'https://localhost:44339' | (string & {});
};

export type DocumentGranularPermissionModel = {
Expand Down Expand Up @@ -159,7 +159,7 @@ export type PingData = {
body?: never;
path?: never;
query?: never;
url: '/umbraco/websiteclient/api/v1/ping';
url: '/umbraco/umbracoextension/api/v1/ping';
};

export type PingErrors = {
Expand All @@ -182,7 +182,7 @@ export type WhatsMyNameData = {
body?: never;
path?: never;
query?: never;
url: '/umbraco/websiteclient/api/v1/whatsMyName';
url: '/umbraco/umbracoextension/api/v1/whatsMyName';
};

export type WhatsMyNameErrors = {
Expand All @@ -205,7 +205,7 @@ export type WhatsTheTimeMrWolfData = {
body?: never;
path?: never;
query?: never;
url: '/umbraco/websiteclient/api/v1/whatsTheTimeMrWolf';
url: '/umbraco/umbracoextension/api/v1/whatsTheTimeMrWolf';
};

export type WhatsTheTimeMrWolfErrors = {
Expand All @@ -228,7 +228,7 @@ export type WhoAmIData = {
body?: never;
path?: never;
query?: never;
url: '/umbraco/websiteclient/api/v1/whoAmI';
url: '/umbraco/umbracoextension/api/v1/whoAmI';
};

export type WhoAmIErrors = {
Expand Down
Loading