upp/pkg/api/handler.go
2024-12-31 18:02:40 +08:00

10 lines
192 B
Go

package api
import "fmt"
type HandlerFunc func(*Ctx) error
func ToDoHandler(c *Ctx) error {
return c.Status(501).SendString(fmt.Sprintf("%s - %s Not Implemented", c.Method(), c.Path()))
}