personal-info
professional-info
contacts
personal-info
/**bioFrontend Developer with one year of professional experience, specializing in frameworks such as Vue, Nuxt, and React. Skilled in crafting visually appealing and responsive designs using TailwindCSS, complemented by a solid foundation in Bootstrap. Beyond the frontend, I have knowledge of backend technologies like Express.js and Nest.js, along with proficiency in working with MongoDB databases. Programming is my passion, and I am constantly driven to expand my knowledge and refine my skills. Ready to take on new challenges and contribute to impactful projects!*/
// Code snippet showcase:

@nevenmitrovic
1 year and 9 months ago
export function useAxios(): AxiosInstance {
const axiosInstance: AxiosInstance = axios.create({
baseURL: import.meta.env.VITE_API_URL
});
axiosInstance.interceptors.request.use(
async (config: InternalAxiosRequestConfig): Promise<InternalAxiosRequestConfig> => {
return config;
},
(error: any) => {
Promise.reject(error);
}
);
axiosInstance.interceptors.response.use(
async (config: AxiosResponse): Promise<AxiosResponse> => {
return config;
},
(error: any) => {
Promise.reject(error);
}
)
return axiosInstance;
}