Versions

  • v0

    7/26/2023
    Open: Version
    +19
    -0

    export async function test() {
    const { default: axios } = await import("npm:axios");
    const url = "http://207.244.232.58:8011/api";
    const message = "testing";
    const loginInfo = {
    username: "HAZAH",
    password: "HAZAHisOP1!",
    };
    try {
    const response = await axios.post(`${url}/login`, loginInfo);
    // const data = response.json();
    console.log(response);
    return true;
    }
    catch (error) {
    console.log(error);
    return false;
    }
    }
2
Next
Updated: December 16, 2023