cmd/osbuild-worker-executor: import verbatim from mvo5/oaas
This commit imports the repository https://github.com/mvo5/oaas without keeping the history. The history is largely unimportant and can be looked up in https://github.com/mvo5/oaas/commits/main if needed.
This commit is contained in:
parent
fa416e4545
commit
372d9f07dd
12 changed files with 1024 additions and 0 deletions
13
cmd/osbuild-worker-executor/routes.go
Normal file
13
cmd/osbuild-worker-executor/routes.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func addRoutes(mux *http.ServeMux, logger *logrus.Logger, config *Config) {
|
||||
mux.Handle("/api/v1/build", handleBuild(logger, config))
|
||||
mux.Handle("/api/v1/result/", http.StripPrefix("/api/v1/result/", handleResult(logger, config)))
|
||||
mux.Handle("/", handleRoot(logger, config))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue