Skip to content

Commit 6b44b81

Browse files
endpoint URL format changes.
1 parent 0de93f6 commit 6b44b81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index/server/pkg/server/endpoint.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ func serveDevfile(c *gin.Context) {
138138

139139
// serveDevfileStarterProject returns the starter project content for the devfile
140140
func serveDevfileStarterProject(c *gin.Context) {
141-
devfileName := c.Param("name")
142-
starterProjectName := c.Param("project")
141+
devfileName := c.Param("devfileName")
142+
starterProjectName := c.Param("starterProjectName")
143143
}
144144

145145
func serveUI(c *gin.Context) {

index/server/pkg/server/index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func ServeRegistry() {
131131
router.GET("/index/:type", serveDevfileIndexWithType)
132132
router.GET("/health", serveHealthCheck)
133133
router.GET("/devfiles/:name", serveDevfile)
134-
router.GET("/devfiles/:name/projects/:project", serveDevfileStarterProject)
134+
router.GET("/devfiles/:devfileName/starterProjects/:starterProjectName", serveDevfileStarterProject)
135135

136136
// Set up a simple proxy for /v2 endpoints
137137
// Only allow HEAD and GET requests

0 commit comments

Comments
 (0)