472bf8b732
Co-Authored-By: Codex <noreply@openai.com>
17 lines
266 B
Go
17 lines
266 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/basketikun/infinite-canvas/service"
|
|
)
|
|
|
|
func Prompts(w http.ResponseWriter, r *http.Request) {
|
|
result, err := service.ListPrompts(parseQuery(r))
|
|
if err != nil {
|
|
Fail(w, err.Error())
|
|
return
|
|
}
|
|
OK(w, result)
|
|
}
|