This commit is contained in:
Justin Hawkins 2021-02-07 08:10:27 +10:30
parent 6b1867f35f
commit ec658520b7

View File

@ -4,14 +4,14 @@ import (
"encoding/json"
"fmt"
"github.com/tardisx/discord-auto-upload/assets"
"log"
"net/http"
"strconv"
"github.com/tardisx/discord-auto-upload/config"
"log"
"mime"
"net/http"
"os"
"path/filepath"
"regexp"
"strconv"
"text/template"
)
@ -123,7 +123,6 @@ func getSetUsername(w http.ResponseWriter, r *http.Request) {
}
}
func getSetWatch(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
@ -155,7 +154,6 @@ func getSetWatch(w http.ResponseWriter, r *http.Request) {
return
}
config.Config.Watch = i
postResponse := valueStringResponse{Success: true, Value: strconv.Itoa(config.Config.Watch)}
@ -200,7 +198,6 @@ func getSetNoWatermark(w http.ResponseWriter, r *http.Request) {
}
}
func getSetDirectory(w http.ResponseWriter, r *http.Request) {
log.Print("ok")
w.Header().Set("Content-Type", "application/json")