refactor: use scalar instead of swagger for frontend

This commit is contained in:
Stavros
2026-07-04 17:56:37 +03:00
parent dcb503b3be
commit c10c33c664
5 changed files with 16 additions and 52 deletions
+3 -3
View File
@@ -62,10 +62,10 @@ export default defineConfig({
changeOrigin: true,
rewrite: (path) => path.replace(/^\/authorize/, ""),
},
"/swagger": {
target: "http://tinyauth-backend:3000/swagger",
"/scalar": {
target: "http://tinyauth-backend:3000/scalar",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/swagger/, ""),
rewrite: (path) => path.replace(/^\/scalar/, ""),
}
},
allowedHosts: true,