summaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 35128d0..0e5b185 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -172,6 +172,9 @@ func (s *Server) routes() {
s.mux.HandleFunc("POST /api/projects", s.handleCreateProject)
s.mux.HandleFunc("GET /api/projects/{id}", s.handleGetProject)
s.mux.HandleFunc("PUT /api/projects/{id}", s.handleUpdateProject)
+ s.mux.HandleFunc("POST /api/roles/{role}/versions", s.handleCreateRoleVersion)
+ s.mux.HandleFunc("GET /api/roles/{role}/versions", s.handleListRoleVersions)
+ s.mux.HandleFunc("POST /api/roles/{role}/activate", s.handleActivateRoleVersion)
s.mux.HandleFunc("GET /api/health", s.handleHealth)
s.mux.HandleFunc("GET /api/version", s.handleVersion)
s.mux.HandleFunc("POST /api/webhooks/github", s.handleGitHubWebhook)