mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
added configuration endpoints
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
// @description This is the Signal Cli REST API documentation.
|
||||
|
||||
// @tag.name General
|
||||
// @tag.description List general information.
|
||||
// @tag.description Some general endpoints.
|
||||
|
||||
// @tag.name Devices
|
||||
// @tag.description Register and link Devices.
|
||||
@@ -65,6 +65,12 @@ func main() {
|
||||
about.GET("", api.About)
|
||||
}
|
||||
|
||||
configuration := v1.Group("/configuration")
|
||||
{
|
||||
configuration.GET("", api.GetConfiguration)
|
||||
configuration.POST("", api.SetConfiguration)
|
||||
}
|
||||
|
||||
health := v1.Group("/health")
|
||||
{
|
||||
health.GET("", api.Health)
|
||||
|
||||
Reference in New Issue
Block a user