fix: file preview URLs and milestone web link saving

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-06-05 22:44:52 +09:00
parent ccf892e479
commit fa8ed76e22
6 changed files with 36 additions and 6 deletions

View File

@@ -16,6 +16,14 @@ export const apiClient = axios.create({
},
});
export function fileViewUrl(fileId: string): string {
return `${baseURL}/files/${fileId}/view`;
}
export function fileDownloadUrl(fileId: string): string {
return `${baseURL}/files/${fileId}/download`;
}
apiClient.interceptors.request.use((config) => {
if (config.data instanceof FormData) {
delete config.headers['Content-Type'];