Skip to content

Commit

Permalink
fix: use relative path for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Apr 30, 2024
1 parent 678976c commit 4aa6c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/device_code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface Response {

async function acceptUserCode(userCode: string, challenge: string) {
return axios
.put(`/api/device?device_challenge=${challenge}`, {
.put(`./api/device?device_challenge=${challenge}`, {
user_code: userCode,
})
.then(({ data }: Response) => {
Expand Down

0 comments on commit 4aa6c83

Please sign in to comment.