23 lines
517 B
Go
23 lines
517 B
Go
package handlers
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
type PipelineHandler struct{}
|
|
|
|
func NewPipelineHandler() *PipelineHandler {
|
|
return &PipelineHandler{}
|
|
}
|
|
|
|
func (h *PipelineHandler) List(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
json.NewEncoder(w).Encode([]any{})
|
|
}
|
|
|
|
func (h *PipelineHandler) Get(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
json.NewEncoder(w).Encode(map[string]string{"status": "ok"})
|
|
}
|