admin: pozice
This commit is contained in:
3
klice.go
3
klice.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user