feat : add front-end using shad cn

This commit is contained in:
ARJUN S THAMPI
2026-03-12 17:56:52 +05:30
parent 521a1fea79
commit ded04fca7f
34 changed files with 10304 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import axios from "axios";
const api = axios.create({
baseURL: "http://localhost:3000/api",
});
api.interceptors.request.use((config) => {
const token = localStorage.getItem("token");
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});
export default api;