Skip to content

Commit

Permalink
Update router.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyyu007 committed Dec 19, 2023
1 parent 3b5f79a commit 02af988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function createAppRouter() {
let isAuthenticated = false

try {
const response = await fetch("http://127.0.0.1:3033/loadUser", {
const response = await fetch("https://res-a-me.resilientdb.com/loadUser", {
method: "GET",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -74,7 +74,7 @@ export function createAppRouter() {
if (json.status === 200) {
isAuthenticated = true;
} else if (json.msg === "Token has expired") {
const refreshResponse = await fetch("http://127.0.0.1:3033/refresh", {
const refreshResponse = await fetch("https://res-a-me.resilientdb.com/refresh", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down

0 comments on commit 02af988

Please sign in to comment.