This commit is contained in:
Simon Ser 2022-02-21 11:11:27 +01:00
parent 5a641ceca1
commit 13008e0d96
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import (
"log"
"net/http"
"os"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
@ -31,11 +31,11 @@ func main() {
authProvider := auth.NewIMAP("imap.migadu.com:993", true)
mux.Use(authProvider.Middleware())
mux.Get("/", func (w http.ResponseWriter, r *http.Request) {
mux.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello world!\n"))
})
server := http.Server {
server := http.Server{
Addr: addr,
Handler: mux,
}