FILE / ScuroNeko/H2Node

main.go

Исходный файл и его история в репозитории.
FILE 3701af1fd72bfc88e4f47347ebae48cc8019e5b8
This repository has been archived on 2026-04-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
H2Node/main.go
T
2026-02-27 13:23:16 +03:00

31 lines
509 B
Go

package main
import (
"Hyst2Auth/app"
"log"
"net/http"
)
func main() {
app.LoadIP()
app.LoadConfig()
_, err := app.LoadProvider()
if err != nil {
panic(err)
}
r := http.NewServeMux()
r.HandleFunc("/add", app.AddUser)
r.HandleFunc("/delete", app.DeleteUser)
r.HandleFunc("/users", app.AllUsers)
r.HandleFunc("/connect_url", app.GetUserURL)
r.HandleFunc("/auth", app.DoAuth)
log.Println("Listening on :8080")
if err := http.ListenAndServe(":8080", r); err != nil {
log.Fatal(err)
}
}