17 lines
266 B
Go
17 lines
266 B
Go
package main
|
|
|
|
import (
|
|
"binaryserver/app/backend"
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/report", backend.ReportHandler)
|
|
http.HandleFunc("/", backend.BinaryHandler)
|
|
http.ListenAndServe(":80", nil)
|
|
fmt.Println("Listening on port: 80")
|
|
for {
|
|
}
|
|
}
|