admin: pozice

This commit is contained in:
2025-10-09 17:59:17 +02:00
parent 68c081891f
commit a343f14f1e
5 changed files with 121 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ import (
_ "github.com/mattn/go-sqlite3"
)
const domain = "http://localhost:8080"
var db *sql.DB
func hashPassword(password string) string {
@@ -341,6 +343,7 @@ func main() {
http.HandleFunc("/admin/routes", AdminRouteHandler)
http.HandleFunc("/admin/levels", AdminLevelHandler)
http.HandleFunc("/admin/cipher", AdminCipherHandler)
http.HandleFunc("/admin/positions", AdminPositionsHandler)
fmt.Println("Server started at :8080")
http.ListenAndServe(":8080", nil)