diff --git a/Gallery.Web/public/staticwebapp.config.json b/Gallery.Web/public/staticwebapp.config.json index 4c9f309..d20ca81 100644 --- a/Gallery.Web/public/staticwebapp.config.json +++ b/Gallery.Web/public/staticwebapp.config.json @@ -2,7 +2,8 @@ "navigationFallback": { "rewrite": "/index.html", "exclude": [ - "*.{css, svg, js, ts, png, jpeg, jpg, ico}" + "*.{css, svg, js, ts, png, jpeg, jpg, ico}", + "/api/*" ] } } \ No newline at end of file diff --git a/Gallery.Web/src/api.ts b/Gallery.Web/src/api.ts index 0e99e7b..c3ae171 100644 --- a/Gallery.Web/src/api.ts +++ b/Gallery.Web/src/api.ts @@ -2,7 +2,7 @@ import axios from 'axios' import { useRouter } from 'vue-router' const api = axios.create({ - baseURL: import.meta.env.VITE_API_URL, + baseURL: "/api/", headers: { 'Content-Type': 'application/json', },