add targets apis

This commit is contained in:
UlricQin 2022-01-06 11:48:30 +08:00
parent 40e7ede5e3
commit 850a370f9d
1 changed files with 8 additions and 0 deletions

View File

@ -238,5 +238,13 @@ func configRoute(r *gin.Engine, version string) {
{
service.Any("/prometheus/*url", prometheusProxy)
service.POST("/users", userAddPost)
service.GET("/targets", targetGets)
service.DELETE("/targets", targetDel)
service.GET("/targets/tags", targetGetTags)
service.POST("/targets/tags", targetBindTags)
service.DELETE("/targets/tags", targetUnbindTags)
service.PUT("/targets/note", targetUpdateNote)
service.PUT("/targets/bgid", targetUpdateBgid)
}
}