jinnrry 2 년 전
부모
커밋
e727927232
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      server/http_server/http_server.go

+ 2 - 1
server/http_server/http_server.go

@@ -7,6 +7,7 @@ import (
 	"pmail/config"
 	"pmail/controllers"
 	"pmail/controllers/email"
+	"pmail/session"
 	"time"
 )
 
@@ -45,7 +46,7 @@ func HttpStart() {
 
 	httpServer = &http.Server{
 		Addr:         fmt.Sprintf(":%d", HttpPort),
-		Handler:      mux,
+		Handler:      session.Instance.LoadAndSave(mux),
 		ReadTimeout:  time.Second * 60,
 		WriteTimeout: time.Second * 60,
 	}