Skip to content

Commit

Permalink
Merge pull request #78 from COS301-SE-2024/fix/backend/BookRoom(Occup…
Browse files Browse the repository at this point in the history
…iID-Generator)

Routes protected
  • Loading branch information
Rethakgetse-Manaka authored Jun 21, 2024
2 parents 7ef7c04 + a7eb2d1 commit c1683d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion occupi-backend/pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func OccupiRouter(router *gin.Engine, db *mongo.Client) {
api.POST("/book-room", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.BookRoom(ctx, appsession) })
api.POST("/check-in", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.CheckIn(ctx, appsession) })
api.POST("/cancel-booking", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.CancelBooking(ctx, appsession) })
api.GET(("/view-bookings"), middleware.UnProtectedRoute, func(ctx *gin.Context) { handlers.ViewBookings(ctx, appsession) })
api.GET(("/view-bookings"), middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.ViewBookings(ctx, appsession) })
api.GET("/view-rooms", middleware.ProtectedRoute, func(ctx *gin.Context) { handlers.ViewRooms(ctx, appsession) })
}
auth := router.Group("/auth")
Expand Down

0 comments on commit c1683d7

Please sign in to comment.