Implement final changes for custom launcher

This commit is contained in:
rockisch
2023-11-15 18:33:12 -03:00
parent 405e65346b
commit a0b50bdf8d
5 changed files with 166 additions and 29 deletions

View File

@@ -51,6 +51,7 @@ func (s *Server) Start() error {
r.HandleFunc("/register", s.Register)
r.HandleFunc("/character/create", s.CreateCharacter)
r.HandleFunc("/character/delete", s.DeleteCharacter)
r.HandleFunc("/character/export", s.ExportSave)
handler := handlers.CORS(handlers.AllowedHeaders([]string{"Content-Type"}))(r)
s.httpServer.Handler = handlers.LoggingHandler(os.Stdout, handler)
s.httpServer.Addr = fmt.Sprintf(":%d", s.erupeConfig.SignV2.Port)