Files
kontor/kontor-vue/src/services/user.service.js
T

25 lines
527 B
JavaScript

import axios from "axios";
import authHeader from "./auth-header";
const API_URL = "http://localhost:8200/api/user/";
class UserService {
getPublicContent() {
return axios.get(API_URL + "profiles");
}
getUserBoard() {
return axios.get(API_URL + "user", { headers: authHeader() });
}
getModeratorBoard() {
return axios.get(API_URL + "mod", { headers: authHeader() });
}
getAdminBoard() {
return axios.get(API_URL + "admin", { headers: authHeader() });
}
}
export default new UserService();