Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

Commit cb32a29

Browse files
committed
Updated API URLs
1 parent 57e1b0b commit cb32a29

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/apis/contact/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class ContactClient extends BaseClient {
2929
createMessage(
3030
request: CreateContactMessageRequest
3131
): Promise<AxiosResponse<ContactMessageResponse>> {
32-
const url = `${this.config.host}/mail`;
32+
const url = `${this.config.host}/contact/mail`;
3333
const config = axiosRequestConfig(request);
3434

3535
return this.axiosInstance.post<ContactMessageResponse>(

src/apis/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ContactClient } from "./contact/client";
33
import { SecurityClient } from "./security/client";
44

55
const defaultConfig: ClientConfig = {
6-
host: "https://b623pa888e.execute-api.us-east-2.amazonaws.com/api",
6+
host: "https://api.justinsexton.net",
77
};
88

99
export class PortfolioClient {

src/apis/security/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class SecurityClient extends BaseClient {
2626
}
2727

2828
login(request: LoginRequest): Promise<AxiosResponse<LoginResponse>> {
29-
const url = `${this.config.host}/login`;
29+
const url = `${this.config.host}/security/login`;
3030
const config = axiosRequestConfig(request);
3131

3232
return this.axiosInstance.post<LoginResponse>(url, request.body, config);
@@ -35,7 +35,7 @@ export class SecurityClient extends BaseClient {
3535
confirmAccount(
3636
request: UpdatePasswordRequest
3737
): Promise<AxiosResponse<LoginResponse>> {
38-
const url = `${this.config.host}/confirm-account`;
38+
const url = `${this.config.host}/security/confirm-account`;
3939
const config = axiosRequestConfig(request);
4040

4141
return this.axiosInstance.post<LoginResponse>(url, request.body, config);

0 commit comments

Comments
 (0)