mirror of
https://github.com/luscis/openlan.git
synced 2025-10-12 20:10:08 +08:00
fea: add statics for output
This commit is contained in:
@@ -32,8 +32,8 @@ func (h Link) List(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (h Link) Get(w http.ResponseWriter, r *http.Request) {
|
||||
vars := mux.Vars(r)
|
||||
libol.Info("Link.Get %s", vars["id"])
|
||||
|
||||
libol.Debug("Link.Get %s", vars["id"])
|
||||
link := cache.Link.Get(vars["id"])
|
||||
if link != nil {
|
||||
ResponseJson(w, models.NewLinkSchema(link))
|
||||
|
Reference in New Issue
Block a user