mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
added package version api, dependencies upgrade
This commit is contained in:
11
internal/api/v1/version.go
Normal file
11
internal/api/v1/version.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/yusing/go-proxy/pkg"
|
||||
)
|
||||
|
||||
func GetVersion(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(pkg.GetVersion()))
|
||||
}
|
||||
Reference in New Issue
Block a user