Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GameOver2811 committed Jun 1, 2024
2 parents 0715eb4 + 491ef09 commit 216a912
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 9 deletions.
15 changes: 15 additions & 0 deletions Backend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "*.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}
27 changes: 25 additions & 2 deletions Frontend/DMS-IMS/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Frontend/DMS-IMS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"jwt-decode": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion Frontend/DMS-IMS/src/Components/AddFaculty.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AddFaculty = () => {

const addFaculty = async() => {
const { name, department, email, password, role } = credentials;
const res = await fetch('http://localhost:3000/addData/user', {
const res = await fetch('https://coms-imsec-backend.vercel.app/addData/user', {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down
2 changes: 1 addition & 1 deletion Frontend/DMS-IMS/src/Components/AddStudent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AddStudent = () => {

const addStudent = async() => {
const { name, rollNumber, year, branch, section, email } = credentials;
const res = await fetch('http://localhost:3000/addData/student', {
const res = await fetch('https://coms-imsec-backend.vercel.app/addData/student', {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down
2 changes: 1 addition & 1 deletion Frontend/DMS-IMS/src/Components/AddSubject.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const AddSubject = () => {

const addSubject = async()=>{
const { subjectCode, subjectName, year, description} = credentials;
const res = await fetch('http://localhost:3000/addData/subject', {
const res = await fetch('https://coms-imsec-backend.vercel.app/addData/subject', {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down
6 changes: 3 additions & 3 deletions Frontend/DMS-IMS/src/Components/AssignFaculty.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AssignFaculty = () => {
});

const assignSubject = async()=> {
const response = await fetch('http://localhost:3000/assign', {
const response = await fetch('https://coms-imsec-backend.vercel.app/assign', {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -38,7 +38,7 @@ const AssignFaculty = () => {
};

useEffect(() => {
fetch("http://localhost:3000/fetch/faculty", {
fetch("https://coms-imsec-backend.vercel.app/fetch/faculty", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -55,7 +55,7 @@ const AssignFaculty = () => {
}, [credentials.branch]);

useEffect(() => {
fetch("http://localhost:3000/fetch/subject", {
fetch("https://coms-imsec-backend.vercel.app/fetch/subject", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion Frontend/DMS-IMS/src/Pages/JSX/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Login = ({ isTokenExpired }) => {
const handleSubmit = async (e) => {
e.preventDefault();
try {
const response = await fetch("http://localhost:3000/login", {
const response = await fetch("https://coms-imsec-backend.vercel.app/login", {
method: "POST",
headers: {
"Content-Type": "application/json"
Expand Down

0 comments on commit 216a912

Please sign in to comment.