mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
10
src/main.go
10
src/main.go
@@ -31,6 +31,9 @@ import (
|
||||
// @tag.name Messages
|
||||
// @tag.description Send and Receive Signal Messages.
|
||||
|
||||
// @tag.name Attachments
|
||||
// @tag.description List and Delete Attachments.
|
||||
|
||||
// @host 127.0.0.1:8080
|
||||
// @BasePath /
|
||||
func main() {
|
||||
@@ -76,6 +79,13 @@ func main() {
|
||||
{
|
||||
link.GET("", api.GetQrCodeLink)
|
||||
}
|
||||
|
||||
attachments := v1.Group("attachments")
|
||||
{
|
||||
attachments.GET("", api.GetAttachments)
|
||||
attachments.DELETE(":attachment", api.RemoveAttachment)
|
||||
attachments.GET(":attachment", api.ServeAttachment)
|
||||
}
|
||||
}
|
||||
|
||||
v2 := router.Group("/v2")
|
||||
|
||||
Reference in New Issue
Block a user