Fixed typo in health endpoint api docs.
This commit is contained in:
@@ -112,7 +112,7 @@ func (b *API) Send(msg config.Message) (string, error) {
|
|||||||
// @Summary Checks if the server is alive.
|
// @Summary Checks if the server is alive.
|
||||||
// @Description OK
|
// @Description OK
|
||||||
// @Success 200 {string} string
|
// @Success 200 {string} string
|
||||||
// @Router /api/health [get]
|
// @Router /health [get]
|
||||||
func (b *API) handleHealthcheck(c echo.Context) error {
|
func (b *API) handleHealthcheck(c echo.Context) error {
|
||||||
return c.String(http.StatusOK, "OK")
|
return c.String(http.StatusOK, "OK")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
// This file was generated by swaggo/swag at
|
// This file was generated by swaggo/swag at
|
||||||
// 2018-11-08 08:07:23.413198 +0800 CST m=+0.090593234
|
// 2018-11-29 03:59:40.172197 +0800 CST m=+0.084842487
|
||||||
|
|
||||||
package docs
|
package docs
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ var doc = `{
|
|||||||
},
|
},
|
||||||
"basePath": "/api",
|
"basePath": "/api",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/api/health": {
|
"/health": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"summary": "Checks if the server is alive.",
|
"summary": "Checks if the server is alive.",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"basePath": "/api",
|
"basePath": "/api",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/api/health": {
|
"/health": {
|
||||||
"get": {
|
"get": {
|
||||||
"description": "OK",
|
"description": "OK",
|
||||||
"summary": "Checks if the server is alive.",
|
"summary": "Checks if the server is alive.",
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ info:
|
|||||||
url: https://github.com/42wim/matterbridge/blob/master/LICENSE
|
url: https://github.com/42wim/matterbridge/blob/master/LICENSE
|
||||||
title: Matterbridge API
|
title: Matterbridge API
|
||||||
paths:
|
paths:
|
||||||
/api/health:
|
/health:
|
||||||
get:
|
get:
|
||||||
description: OK
|
description: OK
|
||||||
responses:
|
responses:
|
||||||
|
|||||||
Reference in New Issue
Block a user