added package version api, dependencies upgrade

This commit is contained in:
yusing
2024-10-06 09:23:41 +08:00
parent aa6fafd52f
commit 03cad9f315
15 changed files with 107 additions and 193 deletions

View 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()))
}