Skip to content

Commit

Permalink
Merge pull request #30 from AishwaryVishwakarma/master
Browse files Browse the repository at this point in the history
Sync Up
  • Loading branch information
AishwaryVishwakarma authored Dec 23, 2023
2 parents d8e757e + 22f7780 commit 3ff5e6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "nodemon index.js",
"start": "node index.js",
"lint": "npx eslint ."
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_HOST=https://fundamentals-server.onrender.com/
NEXT_PUBLIC_HOST=https://lazy-pink-seagull-toga.cyclic.app/
18 changes: 8 additions & 10 deletions frontend/src/END_POINTS.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
const port = 8000;
export const login = `${process.env.NEXT_PUBLIC_HOST}login`; // post / get

export const login = `http://localhost:${port}/login`; // post / get
export const signup = `${process.env.NEXT_PUBLIC_HOST}signup`; // post

export const signup = `http://localhost:${port}/signup`; // post
export const checkUser = `${process.env.NEXT_PUBLIC_HOST}checkuser`; // post

export const checkUser = `http://localhost:${port}/checkuser`; // post
export const setSubscription = `${process.env.NEXT_PUBLIC_HOST}set-subscription`; // post

export const setSubscription = `http://localhost:${port}/set-subscription`; // post
export const userProfile = `${process.env.NEXT_PUBLIC_HOST}profiles/`; //post (need user id at the end)

export const userProfile = `http://localhost:${port}/profiles/`; //post (need user id at the end)
export const createProfile = `${process.env.NEXT_PUBLIC_HOST}create-profile`; // post

export const createProfile = `http://localhost:${port}/create-profile`; // post
export const deleteProfile = `${process.env.NEXT_PUBLIC_HOST}delete-profile/`; // delete (need user id at the end)

export const deleteProfile = `http://localhost:${port}/delete-profile/`; // delete (need user id at the end)

export const updateProfile = `http://localhost:${port}/update-profile/`; // put (need user id at the end)
export const updateProfile = `${process.env.NEXT_PUBLIC_HOST}update-profile/`; // put (need user id at the end)

0 comments on commit 3ff5e6d

Please sign in to comment.