mirror of
https://github.com/coder/coder.git
synced 2025-07-01 16:07:26 +00:00
feat: Add streaming endpoint for workspace history (#157)
* feat: Add parameter querying to the API * feat: Add streaming endpoint for workspace history Enables a buildlog-like flow for reading job output. * Fix empty parameter source and destination * Add comment for usage of workspace history logs endpoint
This commit is contained in:
@ -72,6 +72,7 @@ func New(options *Options) http.Handler {
|
||||
r.Route("/{projecthistory}", func(r chi.Router) {
|
||||
r.Use(httpmw.ExtractProjectHistoryParam(api.Database))
|
||||
r.Get("/", api.projectHistoryByOrganizationAndName)
|
||||
r.Get("/parameters", api.projectHistoryParametersByOrganizationAndName)
|
||||
})
|
||||
})
|
||||
})
|
||||
@ -96,6 +97,7 @@ func New(options *Options) http.Handler {
|
||||
r.Route("/{workspacehistory}", func(r chi.Router) {
|
||||
r.Use(httpmw.ExtractWorkspaceHistoryParam(options.Database))
|
||||
r.Get("/", api.workspaceHistoryByName)
|
||||
r.Get("/logs", api.workspaceHistoryLogsByName)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user