aboutsummaryrefslogtreecommitdiff
path: root/backend/api/routes.go
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-15 22:11:13 -0700
committerjackyzha0 <[email protected]>2020-05-15 22:11:13 -0700
commit0b37c8b715b8f5ebea4472c9e7d6104ca8adbdc8 (patch)
treeab7fe8b5f50d2705fc3804562b66bc3dc773ef4b /backend/api/routes.go
parentMerge pull request #25 from jackyzha0/security (diff)
downloadctrl-v-0b37c8b715b8f5ebea4472c9e7d6104ca8adbdc8.tar.xz
ctrl-v-0b37c8b715b8f5ebea4472c9e7d6104ca8adbdc8.zip
add view raw button
Diffstat (limited to 'backend/api/routes.go')
-rw-r--r--backend/api/routes.go7
1 files changed, 2 insertions, 5 deletions
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 {