diff --git a/frontend/src/app.js b/frontend/src/app.js index 2bfd633..6046cda 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -64,4 +64,4 @@ app.post( '/api/startUpscaling', ( request, response ) => { } } ); -Server.listen( 8081 ); \ No newline at end of file +Server.listen( 49369 ); \ No newline at end of file diff --git a/frontend/src/socket.js b/frontend/src/socket.js index a4a0d0b..dc148fa 100644 --- a/frontend/src/socket.js +++ b/frontend/src/socket.js @@ -8,7 +8,7 @@ export const state = reactive({ }); // "undefined" means the URL will be computed from the `window.location` object -const URL = process.env.NODE_ENV === "production" ? undefined : "http://localhost:8081"; +const URL = process.env.NODE_ENV === "production" ? undefined : "http://localhost:49369"; export const socket = io(URL); diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index 490f640..1a2f7f1 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -79,7 +79,7 @@ export default { }, methods: { runCommand ( command ) { - fetch( 'http://127.0.0.1:8081/api/get' + command ).then( res => { + fetch( 'http://127.0.0.1:49369/api/get' + command ).then( res => { res.json().then( data => { this.upscaleSettings[ command ] = data[ 'data' ]; } ).catch( error => { @@ -96,7 +96,7 @@ export default { 'charset': 'utf-8' }, } - fetch( 'http://127.0.0.1:8081/api/startUpscaling', fetchOptions ).then( res => { + fetch( 'http://127.0.0.1:49369/api/startUpscaling', fetchOptions ).then( res => { res.json().then( data => { console.log( this.upscaleSettings ); if ( data.data == 'upscaling' ) { diff --git a/frontend/src/views/SettingsView.vue b/frontend/src/views/SettingsView.vue index d348295..14f23a4 100644 --- a/frontend/src/views/SettingsView.vue +++ b/frontend/src/views/SettingsView.vue @@ -16,7 +16,7 @@ export default { }, methods: { run() { - fetch( 'http://127.0.0.1:8081/api/getEngines' ).then( res => { + fetch( 'http://127.0.0.1:49369/api/getEngines' ).then( res => { console.log( res ); res.json().then( data => { this.engines = data.body;