From fb0a8500571f8786e16d696f6bd72b7078198910 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 25 Feb 2021 15:15:39 +0100 Subject: [PATCH] loginAPI.js change mathods to actions --- frontend/src/mixins/loginAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/mixins/loginAPI.js b/frontend/src/mixins/loginAPI.js index 69c5e1441..d102f381d 100644 --- a/frontend/src/mixins/loginAPI.js +++ b/frontend/src/mixins/loginAPI.js @@ -3,7 +3,7 @@ const LOGIN_API_URL = 'http://localhost/login_api/' // define a mixin object const loginAPI = { - mutations: { + actions: { login: async () => { return axios.post(LOGIN_API_URL + 'unsecureLogin', data); },