correct ping test

This commit is contained in:
vincent 2019-04-25 17:52:32 +02:00
parent 815d3cd1fb
commit 3e884ea39b
2 changed files with 2 additions and 2 deletions

View File

@ -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!')

View File

@ -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;