jaiyankargupta / OCD-Website

Open Code Developer Society(OCD) is a well known society at NIT Kurukshetra. This society helps everyone to improve their knowledge and skills in the coding area. This website contains all the information you want to know about OCD
https://jaiyankargupta.github.io/OCD-Website/
0 stars 66 forks source link

API Calls #27

Open Kharb-Hardik opened 1 month ago

Kharb-Hardik commented 1 month ago

API CALLS Application:

RiyaRaj28 commented 1 month ago

Can you elaborate a bit more on this?

Kharb-Hardik commented 1 month ago

some thing like this

fetch(url,{`
        method:'POST',
        body:formdata
        })
        .then((response) => response.json())
        .then((result) => {
        if(result.message == "Success"){
        alert("You are logged in");
        this.goToMain();
        } 
        else {
            alert("Please check your login information.");
        }
    })
Kharb-Hardik commented 1 month ago

using api calls like this but for different purposes

RiyaRaj28 commented 1 month ago

@jaiyankargupta I want this to be assigned to me, but no database exists in the project right now.

jaiyankargupta commented 1 month ago

@RiyaRaj28 done