added feeds

This commit is contained in:
2023-09-17 11:54:37 +02:00
parent 018bbf3918
commit 43e5d473b7
21 changed files with 76 additions and 25 deletions
+5 -5
View File
@@ -16,17 +16,17 @@ export default defineConfig({
server: {
proxy: {
'/login': {
target: 'http://localhost:8001/api/v1/auth',
'/login/rss': {
target: 'http://localhost:8001/api/v1/auth/login',
changeOrigin: true,
secure: false,
// rewrite: (path) => path.replace(/^\/api/, ''),
rewrite: (path) => path.replace(/^\/login\/rss/, ''),
},
'/feeds': {
'/feeds/get': {
target: 'http://localhost:8001/api/v1/article/get',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/feeds/, ''),
rewrite: (path) => path.replace(/^\/feeds\/get/, ''),
},
},
cors: false