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.
|
||||
// @Description OK
|
||||
// @Success 200 {string} string
|
||||
// @Router /api/health [get]
|
||||
// @Router /health [get]
|
||||
func (b *API) handleHealthcheck(c echo.Context) error {
|
||||
return c.String(http.StatusOK, "OK")
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
// 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
|
||||
|
||||
@@ -21,7 +21,7 @@ var doc = `{
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/api/health": {
|
||||
"/health": {
|
||||
"get": {
|
||||
"description": "OK",
|
||||
"summary": "Checks if the server is alive.",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/api/health": {
|
||||
"/health": {
|
||||
"get": {
|
||||
"description": "OK",
|
||||
"summary": "Checks if the server is alive.",
|
||||
|
||||
@@ -71,7 +71,7 @@ info:
|
||||
url: https://github.com/42wim/matterbridge/blob/master/LICENSE
|
||||
title: Matterbridge API
|
||||
paths:
|
||||
/api/health:
|
||||
/health:
|
||||
get:
|
||||
description: OK
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user