Skip to content

Commit f62a410

Browse files
feat: add redirect to accept https warning
1 parent 6f9b2e5 commit f62a410

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app-server/appserver_linux_amd64

165 Bytes
Binary file not shown.

app-server/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ func Initialize(){
3333
UpdateImages()
3434
}
3535

36+
func RedirectHandler(w http.ResponseWriter, r *http.Request) {
37+
http.Redirect(w, r, GLOBAL.Configuration.SERVER, http.StatusFound)
38+
}
3639

3740
func main() {
3841
Initialize()
42+
http.HandleFunc("/", RedirectHandler)
3943
http.HandleFunc("/ws", SocketHandler)
4044
http.HandleFunc("/download", DownloadFile)
4145
http.HandleFunc("/upload", UploadFile)

0 commit comments

Comments
 (0)