Update main.go
This commit is contained in:
8
main.go
8
main.go
@@ -24,8 +24,12 @@ func main() {
|
||||
http.HandleFunc("/register", registerHandler)
|
||||
http.HandleFunc("/login", loginHandler)
|
||||
|
||||
fmt.Println("Сервер запущен на http://localhost:8080")
|
||||
http.ListenAndServe(":8080", nil)
|
||||
fmt.Println("Сервер запущен на http://localhost:9000")
|
||||
// Меняем порт здесь:
|
||||
err := http.ListenAndServe(":9000", nil)
|
||||
if err != nil {
|
||||
fmt.Printf("Ошибка запуска сервера: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Хэширование пароля
|
||||
|
||||
Reference in New Issue
Block a user