|
|
|
|
@@ -275,7 +275,7 @@ func main() {
|
|
|
|
|
res.Write([]byte("404 page not found\n"))
|
|
|
|
|
})
|
|
|
|
|
http.HandleFunc("GET /status/{Project}", func(res http.ResponseWriter, req *http.Request) {
|
|
|
|
|
mime := ParseMimeHeader(req)
|
|
|
|
|
mime := ParseMimeHeaderAndQuery(req)
|
|
|
|
|
obsPrj := req.PathValue("Project")
|
|
|
|
|
common.LogInfo(" GET /status/"+obsPrj, "["+mime.MimeType()+"]")
|
|
|
|
|
|
|
|
|
|
@@ -296,7 +296,7 @@ func main() {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
http.HandleFunc("GET /status/{Project}/{Package}", func(res http.ResponseWriter, req *http.Request) {
|
|
|
|
|
mime := ParseMimeHeader(req)
|
|
|
|
|
mime := ParseMimeHeaderAndQuery(req)
|
|
|
|
|
obsPrj := req.PathValue("Project")
|
|
|
|
|
obsPkg := req.PathValue("Package")
|
|
|
|
|
common.LogInfo(" GET /status/"+obsPrj+"/"+obsPkg, "["+mime.MimeType()+"]")
|
|
|
|
|
@@ -326,7 +326,7 @@ func main() {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
http.HandleFunc("GET /status/{Project}/{Package}/{Repository}", func(res http.ResponseWriter, req *http.Request) {
|
|
|
|
|
mime := ParseMimeHeader(req)
|
|
|
|
|
mime := ParseMimeHeaderAndQuery(req)
|
|
|
|
|
obsPrj := req.PathValue("Project")
|
|
|
|
|
obsPkg := req.PathValue("Package")
|
|
|
|
|
repo := req.PathValue("Repository")
|
|
|
|
|
@@ -355,7 +355,7 @@ func main() {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
http.HandleFunc("GET /status/{Project}/{Package}/{Repository}/{Arch}", func(res http.ResponseWriter, req *http.Request) {
|
|
|
|
|
mime := ParseMimeHeader(req)
|
|
|
|
|
mime := ParseMimeHeaderAndQuery(req)
|
|
|
|
|
prj := req.PathValue("Project")
|
|
|
|
|
pkg := req.PathValue("Package")
|
|
|
|
|
repo := req.PathValue("Repository")
|
|
|
|
|
|