Introduce "orchard context" (#18)

This commit is contained in:
Nikolay Edigaryev
2023-02-07 19:48:31 +04:00
committed by GitHub
parent a7264370f5
commit 0b9b96b8c9
18 changed files with 656 additions and 5 deletions
+5
View File
@@ -17,6 +17,11 @@ func (controller *Controller) initAPI() *gin.Engine {
// v1 API
v1 := ginEngine.Group("/v1")
// A way to for the clients to check that the API is working
v1.GET("/", func(c *gin.Context) {
c.Status(http.StatusOK)
})
// Workers
v1.POST("/workers", func(c *gin.Context) {
controller.createWorker(c).Respond(c)