mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
* chore: add /v2 to import module path go mod requires semantic versioning with versions greater than 1.x This was a mechanical update by running: ``` go install github.com/marwan-at-work/mod/cmd/mod@latest mod upgrade ``` Migrate generated files to import /v2 * Fix gen
20 lines
433 B
Go
20 lines
433 B
Go
package coderd
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/coder/coder/v2/coderd/httpapi"
|
|
)
|
|
|
|
// @Summary Get experiments
|
|
// @ID get-experiments
|
|
// @Security CoderSessionToken
|
|
// @Produce json
|
|
// @Tags General
|
|
// @Success 200 {array} codersdk.Experiment
|
|
// @Router /experiments [get]
|
|
func (api *API) handleExperimentsGet(rw http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
httpapi.Write(ctx, rw, http.StatusOK, api.Experiments)
|
|
}
|