mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-15 22:46:49 +00:00
(feature)(webapp) use nativeQuery field to determine whether it is a selection (#222)
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
const { proxyTarget } = require('./common/env');
|
||||
|
||||
module.exports = function(app) {
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: 'http://localhost:9080',
|
||||
target: proxyTarget,
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
app.use(
|
||||
'/openapi',
|
||||
createProxyMiddleware({
|
||||
target: proxyTarget,
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user