Fixed typo in health endpoint api docs.

This commit is contained in:
Patrick Connolly
2018-11-29 04:04:44 +08:00
parent e98db116cf
commit 77a932edb8
4 changed files with 5 additions and 5 deletions

View File

@@ -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")
}

View File

@@ -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.",

View File

@@ -11,7 +11,7 @@
},
"basePath": "/api",
"paths": {
"/api/health": {
"/health": {
"get": {
"description": "OK",
"summary": "Checks if the server is alive.",

View File

@@ -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: