UNPKG

@mmh-software/webview

Version:
21 lines (18 loc) 535 B
// src/services/AuthService.js import axios from 'axios'; const config = require('../../../config'); export default { login(credentials) { return axios .post( config.path.Url + '/api/login/', credentials) .then(response => response.data); }, signUp(credentials) { return axios .post( config.path.Url + '/api/sign-up/', credentials) .then(response => response.data); }, getSecretContent() { return axios.get( config.path.Url + 'api/secret-route/').then(response => response.data); } };