From 0b37c8b715b8f5ebea4472c9e7d6104ca8adbdc8 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 15 May 2020 22:11:13 -0700 Subject: add view raw button --- backend/api/routes.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'backend') diff --git a/backend/api/routes.go b/backend/api/routes.go index 474fdda..26c932f 100644 --- a/backend/api/routes.go +++ b/backend/api/routes.go @@ -3,15 +3,14 @@ package api import ( "encoding/json" "fmt" - "github.com/jackyzha0/ctrl-v/security" "net/http" "time" + "github.com/jackyzha0/ctrl-v/security" + "github.com/gorilla/mux" "github.com/jackyzha0/ctrl-v/cache" "github.com/jackyzha0/ctrl-v/db" - - log "github.com/sirupsen/logrus" ) func healthCheckFunc(w http.ResponseWriter, r *http.Request) { @@ -33,8 +32,6 @@ func insertFunc(w http.ResponseWriter, r *http.Request) { // get ip ip := getIP(r) - log.Infof("got content '%s' and ip '%s'", content, ip) - // insert content hash, err := db.New(ip, content, expiry, title, password) if err != nil { -- cgit v1.2.3