fea: add statics for output

This commit is contained in:
Daniel Ding
2024-01-08 20:56:21 +08:00
parent 53dcac37f9
commit c542a184cc
20 changed files with 268 additions and 63 deletions

View File

@@ -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))