From 827046f634ebf3151caaa3d1a9e824580f29e583 Mon Sep 17 00:00:00 2001 From: Erik Zentveld Date: Mon, 28 Oct 2024 16:18:49 +0100 Subject: [PATCH] re-add removed blank lines --- api/router.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/router.go b/api/router.go index 96ded93..ed84aab 100644 --- a/api/router.go +++ b/api/router.go @@ -25,25 +25,31 @@ func CreateRouter() *gin.Engine { router.Use(middleware.Authentication()) router.GET("/dbs/:databaseId/colls/:collId/pkranges", handlers.GetPartitionKeyRanges) + router.POST("/dbs/:databaseId/colls/:collId/docs", handlers.DocumentsPost) router.GET("/dbs/:databaseId/colls/:collId/docs", handlers.GetAllDocuments) router.GET("/dbs/:databaseId/colls/:collId/docs/:docId", handlers.GetDocument) router.PUT("/dbs/:databaseId/colls/:collId/docs/:docId", handlers.ReplaceDocument) router.PATCH("/dbs/:databaseId/colls/:collId/docs/:docId", handlers.PatchDocument) router.DELETE("/dbs/:databaseId/colls/:collId/docs/:docId", handlers.DeleteDocument) + router.POST("/dbs/:databaseId/colls", handlers.CreateCollection) router.GET("/dbs/:databaseId/colls", handlers.GetAllCollections) router.GET("/dbs/:databaseId/colls/:collId", handlers.GetCollection) router.DELETE("/dbs/:databaseId/colls/:collId", handlers.DeleteCollection) + router.POST("/dbs", handlers.CreateDatabase) router.GET("/dbs", handlers.GetAllDatabases) router.GET("/dbs/:databaseId", handlers.GetDatabase) router.DELETE("/dbs/:databaseId", handlers.DeleteDatabase) + router.GET("/dbs/:databaseId/colls/:collId/udfs", handlers.GetAllUserDefinedFunctions) router.GET("/dbs/:databaseId/colls/:collId/sprocs", handlers.GetAllStoredProcedures) router.GET("/dbs/:databaseId/colls/:collId/triggers", handlers.GetAllTriggers) + router.GET("/offers", handlers.GetOffers) router.GET("/", handlers.GetServerInfo) + router.GET("/cosmium/export", handlers.CosmiumExport) addRoutesForTrailingSlashes(router)