| 
									
										
										
										
											2023-07-26 21:15:39 +00:00
										 |  |  | package routers | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"github.com/gin-gonic/gin" | 
					
						
							|  |  |  | 	"sourcecode.social/greatape/goldgorilla/controllers" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func registerRoomRoutes(rg *gin.RouterGroup, ctrl *controllers.RoomController) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	rg.POST("/peer", ctrl.CreatePeer) | 
					
						
							|  |  |  | 	rg.DELETE("/peer", ctrl.ClosePeer) | 
					
						
							| 
									
										
										
										
											2023-07-31 20:10:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-26 21:15:39 +00:00
										 |  |  | 	rg.POST("/ice", ctrl.AddICECandidate) | 
					
						
							|  |  |  | 	rg.POST("/answer", ctrl.Answer) | 
					
						
							|  |  |  | 	rg.POST("/offer", ctrl.Offer) | 
					
						
							| 
									
										
										
										
											2023-07-31 20:10:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	rg.POST("/", ctrl.Start) | 
					
						
							| 
									
										
										
										
											2023-07-31 12:27:40 +00:00
										 |  |  | 	rg.DELETE("/", ctrl.ResetRoom) | 
					
						
							| 
									
										
										
										
											2023-07-26 21:15:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | } |