Skip to content

Commit

Permalink
feat(devops): adjust routes url path (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrh997 authored Jan 14, 2025
1 parent 95fb746 commit f699cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devops/internal/apihandler/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ func registerRoutes(r *mux.Router) {

rootR := r.PathPrefix(root).Subrouter()
rootR.Path("/ping").HandlerFunc(Ping).Methods(http.MethodGet)
rootR.Path("/graphs").HandlerFunc(ListGraphs).Methods(http.MethodGet)
rootR.Path("/stream_log").HandlerFunc(StreamLog).Methods(http.MethodGet)

// debug routes
debugR := rootR.PathPrefix(debugBiz).Subrouter()
debugR.Path("/graphs").HandlerFunc(ListGraphs).Methods(http.MethodGet)
debugR.Path("/graphs/{graph_id}/canvas").HandlerFunc(GetCanvasInfo).Methods(http.MethodGet)
debugR.Path("/graphs/{graph_id}/threads").HandlerFunc(CreateDebugThread).Methods(http.MethodPost)
debugR.Path("/graphs/{graph_id}/threads/{thread_id}/stream").HandlerFunc(StreamDebugRun).Methods(http.MethodPost)
Expand Down

0 comments on commit f699cc9

Please sign in to comment.