mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
15 lines
402 B
Go
15 lines
402 B
Go
package core
|
|
|
|
import (
|
|
"github.com/eolinker/go-common/ignore"
|
|
"github.com/eolinker/go-common/pm3"
|
|
"net/http"
|
|
)
|
|
|
|
func (p *plugin) commonApis() []pm3.Api {
|
|
ignore.IgnorePath("login", http.MethodGet, "/api/v1/common/version")
|
|
return []pm3.Api{
|
|
pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/common/version", []string{"context"}, []string{"version", "build_time"}, p.commonController.Version),
|
|
}
|
|
}
|