mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
18 lines
323 B
Go
18 lines
323 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func serve() {
|
|
http.HandleFunc("/register", func(w http.ResponseWriter, r *http.Request) {
|
|
r.ParseForm()
|
|
user := r.Form.Get("user")
|
|
pw := r.Form.Get("password")
|
|
|
|
log.Printf("Registering new user %s with password %s.\n", user, pw)
|
|
})
|
|
http.ListenAndServe(":80", nil)
|
|
}
|