text: import Axios from "axios";
  import { LOGIN_USER, REGISTER_USER, AUTH_USER } from "./types";
  
  export function loginUser(dataTosubmit) {
    //파라미터로 받음
    const request = Axios.post("/api/users/login", dataTosubmit).then(
      (response) => response.data
    );
  
    return {
      type: LOGIN_USER,
      payload: request,
    };
  }
  
  export function registerUser(dataTosubmit) {
    //파라미터로 받음
    const request = Axios.post("/api/users/register", dataTosubmit).then(
      (response) => response.data
    );
  
    return {
      type: REGISTER_USER,
      payload: request,
    };
  }
  
  export function auth() {
    //파라미터로 받음
    const request = Axios.get("/api/users/auth").then(
      (response) => response.data
    );
  
    return {
      type: AUTH_USER,
      payload: request,
    };
  }
  