import axios from 'axios';
import Cookies from 'js-cookie';
const JWT_TOKEN = 'jwt_token_tycho';
const getJwtToken = () => {
    const cookie = Cookies.get(JWT_TOKEN);
    return cookie === 'undefined' ? '' : cookie;
};
function execute(data) {
    const token = getJwtToken() || '';
    const header = {
        Authorization: `Bearer ${token}`,
    };
    return axios.post(import.meta.env.VITE_APP_UPLOAD_URL, data, {
        headers: header,
    });
}
const UploadService = { execute };
export default UploadService;
