mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-12-01 00:59:02 +08:00
16 lines
434 B
Go
16 lines
434 B
Go
package web
|
|
|
|
import (
|
|
"context"
|
|
core "github.com/chaitin/MonkeyCode/monkeyai/backend/internal/web"
|
|
"net/http"
|
|
)
|
|
|
|
type Error = core.Error
|
|
|
|
func Message(ctx context.Context, code, source string) string { return core.Message(ctx, code, source) }
|
|
func Body(ctx context.Context, code, message string) map[string]any {
|
|
return core.Body(ctx, code, message)
|
|
}
|
|
func NotFound(w http.ResponseWriter, r *http.Request) { core.NotFound(w, r) }
|