pye/main.go
2024-10-12 10:44:12 +03:00

19 lines
315 B
Go

package main
import (
"fmt"
"net/http"
)
func main() {
fmt.Println("=== Working on port 7102 ===")
router := http.NewServeMux()
router.HandleFunc("GET /public-key", publicKey)
router.HandleFunc("POST /register", Register)
router.HandleFunc("POST /login", Login)
http.ListenAndServe(":7102", router)
}