Skip to content

Commit f34ae8e

Browse files
committed
update: Add attachment service to router
1 parent 19f1843 commit f34ae8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ func registerRouter(s *Server) {
129129
containerApi.POST("/create", v1.CreateChallengeContainer).Name = "create-container"
130130
containerApi.POST("/dispose", v1.DisposeChallengeContainer).Name = "dispose-container"
131131

132+
// Attachment APIs
133+
attachmentApi := challengeApi.Group("/:challenge_uuid/attachment")
134+
attachmentApi.POST("/", v1.UploadAttachment).Name = "upload-attachment"
135+
attachmentApi.GET("/:attachment_uuid", v1.GetAttachment).Name = "get-attachment"
136+
attachmentApi.GET("/", v1.GetAttachmentList).Name = "get-attachments"
137+
132138
// Health check
133139
e.GET("/health", router.HealthService)
134140
}

0 commit comments

Comments
 (0)