summaryrefslogtreecommitdiff
path: root/api/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/serve.go')
-rw-r--r--api/serve.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/serve.go b/api/serve.go
index 9547ee0..1536f65 100644
--- a/api/serve.go
+++ b/api/serve.go
@@ -24,6 +24,10 @@ type RequestContext struct {
User *database.User
}
+type FormError struct {
+ Errors []string
+}
+
type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
type ContinuationChain func(Continuation, Continuation) ContinuationChain