Skip to content

Commit

Permalink
Fix url and test functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Aug 28, 2024
1 parent 29c86a8 commit 4e17c91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/session.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { type SessionMetadata } from "../app/hooks"

const baseUrl = "session/"
export type LoginWithGithubResult = SessionMetadata
export type LoginWithGithubArg = { code: string }

Expand All @@ -10,7 +9,7 @@ const sessionApi = api.injectEndpoints({
endpoints: build => ({
loginWithGithub: build.mutation<LoginWithGithubResult, LoginWithGithubArg>({
query: body => ({
url: baseUrl + "login-into-github/",
url: "session/login/",
method: "POST",
body,
}),
Expand Down

0 comments on commit 4e17c91

Please sign in to comment.