Skip to content

Commit e1a96e4

Browse files
committed
Added API.md guide
1 parent 4c9f633 commit e1a96e4

File tree

3 files changed

+383
-4
lines changed

3 files changed

+383
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2019-OpenViduTeaching
1+
# 2019-OpenViduTeaching #
22
OpenVidu application tailored for teaching activities.
33

44
Check out the [Medium blog](https://medium.com/@diego.mzmn) for updates
@@ -31,6 +31,6 @@ Note that this roadmap may change throughout development.
3131

3232
## Development & Installation ##
3333

34-
For information on how to get the the app working [CLICK HERE](/documentation/deploy.md)
35-
For information on how to develop the app [CLICK HERE](/documentation/development.md)
36-
34+
For information on how to get the the app working [CLICK HERE](/documentation/deploy.md).
35+
For information on how to develop the app [CLICK HERE](/documentation/development.md).
36+
For information on the REST API [CLICK HERE](/documentation/api.md).

backend/src/main/java/urjc/ovteaching/rooms/controllers/OpenViduController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public ResponseEntity<String> createSession(@PathVariable String roomName, HttpS
5151
if (room == null) {
5252
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
5353
}
54+
User user = userServ.findByName(request.getUserPrincipal().getName());
55+
// User user = this.userComponent.getLoggedUser();
56+
if(!room.isInRoom(user)) {
57+
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
58+
}
5459
try {
5560
String sessionId;
5661
if (!this.openViduComponent.isSessionCreated(room)) {

0 commit comments

Comments
 (0)