16 lines
337 B
TypeScript
16 lines
337 B
TypeScript
import { Bot } from '@/types/types';
|
|
import axios from 'axios';
|
|
|
|
export const sendDataBot = async (dataBot: Bot) => {
|
|
try {
|
|
const response = await axios.post(
|
|
`${process.env.NEXT_PUBLIC_BOT_URL}/api/resume/`,
|
|
dataBot
|
|
);
|
|
return response;
|
|
} catch (error) {
|
|
console.error('Error post student:', error);
|
|
throw error;
|
|
}
|
|
};
|