correct ping test
This commit is contained in:
parent
815d3cd1fb
commit
3e884ea39b
@ -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!')
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user