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("/register", registerHandler)
|
||||||
http.HandleFunc("/login", loginHandler)
|
http.HandleFunc("/login", loginHandler)
|
||||||
|
|
||||||
fmt.Println("Сервер запущен на http://localhost:8080")
|
fmt.Println("Сервер запущен на http://localhost:9000")
|
||||||
http.ListenAndServe(":8080", nil)
|
// Меняем порт здесь:
|
||||||
|
err := http.ListenAndServe(":9000", nil)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("Ошибка запуска сервера: %v\n", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Хэширование пароля
|
// Хэширование пароля
|
||||||
|
|||||||
Reference in New Issue
Block a user