diff --git a/backend/run.py b/backend/run.py index e4da5b9..407e96f 100644 --- a/backend/run.py +++ b/backend/run.py @@ -9,7 +9,7 @@ app.wsgi_app = ReverseProxied(app.wsgi_app) CORS(app) -@app.route('/api/ping', methods=['GET']) +@app.route('/api/v1/ping', methods=['GET']) def ping_pong(): return jsonify('pong!') diff --git a/client/src/components/ping.vue b/client/src/components/ping.vue index 524e584..71c6b92 100644 --- a/client/src/components/ping.vue +++ b/client/src/components/ping.vue @@ -16,7 +16,7 @@ export default { }, methods: { getMessage() { - const path = 'http://localhost:5000/ping'; + const path = process.env.ROOT_API + '/api/v1/ping'; axios.get(path) .then((res) => { this.msg = res.data;