moved to bootstrap-vue, there is a bug in vee-validate and bootstrap-vue >rc15
This commit is contained in:
24
src/api/roomRepository.ts
Normal file
24
src/api/roomRepository.ts
Normal 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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user