Compare commits
39 Commits
dependabot
...
master
Before Width: | Height: | Size: 379 KiB After Width: | Height: | Size: 379 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 848 KiB After Width: | Height: | Size: 848 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
@ -0,0 +1 @@ |
|||||||
|
docker exec -it $1 bash |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 412 KiB After Width: | Height: | Size: 412 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
@ -1,333 +1,522 @@ |
|||||||
const { createProxyMiddleware } = require('http-proxy-middleware'); |
const { createProxyMiddleware } = require('http-proxy-middleware'); |
||||||
|
|
||||||
module.exports = function(app) { |
module.exports = function (app) { |
||||||
app.use( |
/*app.use( |
||||||
"/eventchart", |
"/event/query", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
);*/ |
||||||
app.use( |
app.use( |
||||||
"/eventsubmit", |
"/sigcrafting", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:3001', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/eventdata", |
"/gitea", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://sig.projectdivar.com', |
||||||
changeOrigin: true, |
changeOrigin:false, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/eventdata/t20", |
"/ngsplanner/class", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/recalculatePlayerData/:id", |
"/ngsplanner/class_level_data", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/streamtop/:id", |
"/ngsplanner/class_weapon_type_data", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/streamkill/:id", |
"/ngsplanner/weapon", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/streamstart/:id", |
"/ngsplanner/weapon_existence_data", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/streaminfo/:id", |
"/ngsplanner/weapon_type", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/updates/:userid", |
"/ngsplanner/armor", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/passImageData", |
"/ngsplanner/potential", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/getUserAuthData", |
"/ngsplanner/potential_data", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/streamdata/:id", |
"/ngsplanner/builds", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/updateuser", |
"/ngsplanner/skill", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/findsong/:songname", |
"/ngsplanner/skill_type", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/authenticate/authToken", |
"/ngsplanner/skill_data", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/updateRegisteredState", |
"/ngsplanner/augment", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/authenticate/login", |
"/ngsplanner/augment_type", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/authenticateuser", |
"/ngsplanner/food_mult", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/sendemail/register", |
"/ngsplanner/roles", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/sendemail/login", |
"/ngsplanner/users", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/recentplays/:username", |
"/ngsplanner/food", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/plays/:username/:songname", |
"/ngsplanner", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'https://server2:4504', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/song/:songname/:difficulty", |
"/ev", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/ratings/:songname", |
"/cans", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/completionreport/:username", |
"/eventchart", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songmods/:username/:songname/:difficulty", |
"/create-event", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songpfccount/:username/:songname/:difficulty", |
"/event/leaderboard", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songs", |
"/eventsubmit", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/bestplays/:username", |
"/eventdata", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/image", |
"/eventdata/t20", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://projectdivar.com:4503', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/upload", |
"/recalculatePlayerData/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/song/:songname", |
"/streamtop/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/remove", |
"/streamkill/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/submit", |
"/streamstart/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songdiffs", |
"/streaminfo/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/accuracy/:username", |
"/updates/:userid", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/recalculatescore/:playid", |
"/passImageData", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/bestplay/:username/:songname/:difficulty", |
"/getUserAuthData", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/userdata/:username", |
"/streamdata/:id", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/playcount/:username/:songname/:difficulty", |
"/updateuser", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songpasscount/:username/:songname/:difficulty", |
"/findsong/:songname", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/songfccount/:username/:songname/:difficulty", |
"/authenticate/authToken", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/rating/:username", |
"/updateRegisteredState", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/users/:orderby/:sortorder", |
"/authenticate/login", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/twitter/mentions", |
"/authenticateuser", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
app.use( |
app.use( |
||||||
"/files", |
"/sendemail/register", |
||||||
createProxyMiddleware({ |
createProxyMiddleware({ |
||||||
target: 'http://server:4501', |
target: 'http://server:4501', |
||||||
changeOrigin: true, |
changeOrigin: true, |
||||||
}) |
}) |
||||||
); |
); |
||||||
}; |
app.use( |
||||||
|
"/sendemail/login", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/recentplays/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/plays/:username/:songname", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/song/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/ratings/:songname", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/completionreport/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songmods/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songpfccount/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songs", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/bestplays/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/image", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://projectdivar.com:4503', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/upload", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/song/:songname", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/remove", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/submit", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songdiffs", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/accuracy/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/recalculatescore/:playid", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/bestplay/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/userdata/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/playcount/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songpasscount/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/songfccount/:username/:songname/:difficulty", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/rating/:username", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/users/:orderby/:sortorder", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/twitter/mentions", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
app.use( |
||||||
|
"/files", |
||||||
|
createProxyMiddleware({ |
||||||
|
target: 'http://server:4501', |
||||||
|
changeOrigin: true, |
||||||
|
}) |
||||||
|
); |
||||||
|
}; |
||||||
|