diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index fed1729e8c31da848853714590c2688592b800ac..7d13ff3ac9bd44d1687c5d509d5eaf13778c47f4 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -48,6 +48,7 @@ import {
 import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
 import { HttpClientModule } from '@angular/common/http';
 import { InMemoryDataService } from './in-memory-data.service';
+import { InMemoryDataService } from './in-memory-data.service';
 import { RoomCreationComponent } from './room-creation/room-creation.component';
 import { LoginScreenComponent } from './login-screen/login-screen.component';
 import { NotificationService } from './notification.service';
diff --git a/src/app/room.service.ts b/src/app/room.service.ts
index 5072eb2ee09eb8c100eb2fa0aeff2da5cd681a5c..42c4c3e22ad71ddf9af3c2ffa5c1ad48004e74eb 100644
--- a/src/app/room.service.ts
+++ b/src/app/room.service.ts
@@ -18,4 +18,8 @@ export class RoomService {
   getRooms(): Observable<Room[]> {
     return this.http.get<Room[]>(this.roomsUrl);
   }
+
+  addRoom(room: Room): Observable<Room> {
+    return this.http.post<Room>(this.roomsUrl, room, httpOptions);
+  }
 }