mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-08 19:20:19 +00:00
refactor: use scalar instead of swagger for frontend
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user