moved to bootstrap-vue, there is a bug in vee-validate and bootstrap-vue >rc15

This commit is contained in:
2019-04-23 16:13:18 +02:00
parent c374ae1796
commit 4a97efce6f
26 changed files with 4310 additions and 743 deletions

24
src/api/roomRepository.ts Normal file
View File

@@ -0,0 +1,24 @@
// groupRepository.ts
// @ts-ignore
import Repository from './Repository';
const resource = '/room';
export default {
getRooms() {
return Repository.get(`${resource}`);
},
getRoom(roomId: number) {
return Repository.get(`${resource}/${roomId}`);
},
createRoom(roomData: any) {
return Repository.post(`${resource}`, roomData);
},
updateRoom(roomId: number, roomData: any) {
return Repository.put(`${resource}/${roomId}`, roomData);
},
};