Skip to content

Commit

Permalink
fix: api call relocation
Browse files Browse the repository at this point in the history
try catch added in login signup chapteName
  • Loading branch information
jasirtp committed Sep 27, 2021
1 parent 555c35c commit 60b121b
Show file tree
Hide file tree
Showing 4 changed files with 416 additions and 394 deletions.
15 changes: 8 additions & 7 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ const clientUrl = process.env.CLIENT_URL;
const editorUrl = process.env.EDITOR_URL;
const s3Url = process.env.BUCKET_URL;
const serverUrl = process.env.SERVER_URL;
const apiVerUrl = "api/v1";
const authUrl = "/api/auth";
const enrolUrl = "/api/enrol";
const postUrl = "api/v1/post";
const postsUrl = "api/v1/posts";
const postUrl = `${apiVerUrl}/post`;
const postsUrl = `${apiVerUrl}/posts`;
const allPostsUrl = "api/posts";
const changeStatusUrl = "api/user/post";
const subscribeUrl = "api/subscribe";
const loginUrl = "api/v1/signin";
const signUpUrl = "api/v1/user";
const userUrl = "api/v1/user";
const usersUrl = "api/v1/users";
const loginUrl = `${apiVerUrl}/signin`;
const signUpUrl = `${apiVerUrl}/user`;
const userUrl = `${apiVerUrl}/user`;
const usersUrl = `${apiVerUrl}/users`;
const adminUrl = "api/admin";
const tagUrl = "api/v1/tags";
const tagUrl = `${apiVerUrl}/tags`;
const skillUrl = "api/skills";
const searchUrl = "api/search";
const forgotPasswordUrl = "api/auth/reset-password";
Expand Down
Loading

0 comments on commit 60b121b

Please sign in to comment.