added repo for API access, still strange error in Group.vue

This commit is contained in:
Tobias Kurze
2019-04-10 15:16:20 +02:00
parent c043918fb8
commit 654c78ff7c
5 changed files with 259 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
// groupRepository.js
import Repository from "./Repository";
const resource = "/group";
export default {
get() {
return Repository.get(`${resource}`);
},
getGroup(groupId) {
return Repository.get(`${resource}/${groupId}`);
},
createGroup(groupData) {
return Repository.post(`${resource}`, groupData);
},
};