• This project
    • Loading...
  • Sign in

맹주환 / take_an_umbrella

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • take_an_umbrella
  • client
  • src
  • setupProxy.js
  • 맹주환's avatar
    Add function client/location.js to get user's location and send this to server · 2a687ccc
    2a687ccc
    맹주환 authored 2021-12-09 13:49:44 +0900
setupProxy.js 404 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
const proxy = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        proxy.createProxyMiddleware('/api', {
            target: 'http://localhost:5000',    
            changeOrigin : true
        })
    );
    app.use(
        proxy.createProxyMiddleware('/locate', {
            target: 'http://localhost:5000',    
            changeOrigin : true
        })
    );
};