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