mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-07 00:12:21 +01:00
removed old handle config func
This commit is contained in:
parent
dd2d80475c
commit
6df7a79ea0
@ -619,12 +619,6 @@ func HandleReadFile(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
func HandleConfig(w http.ResponseWriter, r *http.Request) {
|
||||
filePath := r.URL.Path
|
||||
fullPath := path.Join(scbase.GetWaveHomeDir(), filePath)
|
||||
http.ServeFile(w, r, fullPath)
|
||||
}
|
||||
|
||||
func WriteJsonError(w http.ResponseWriter, errVal error) {
|
||||
w.Header().Set(ContentTypeHeaderKey, ContentTypeJson)
|
||||
w.WriteHeader(200)
|
||||
|
Loading…
Reference in New Issue
Block a user