summaryrefslogtreecommitdiff
path: root/api/serve.go
diff options
context:
space:
mode:
authorElizabeth <elizabeth@simponic.xyz>2024-04-03 16:22:19 -0600
committerElizabeth <elizabeth@simponic.xyz>2024-04-03 16:22:19 -0600
commite398cf05402c010d594cea4e2dea307ca1a36dbe (patch)
tree57a878b408a2066275fefb8058a43ec44d9bd223 /api/serve.go
parentb74a955dcb8cc1d5d2599a1b096510a60e55e7d7 (diff)
downloadhatecomputers.club-e398cf05402c010d594cea4e2dea307ca1a36dbe.tar.gz
hatecomputers.club-e398cf05402c010d594cea4e2dea307ca1a36dbe.zip
checkpoint to save work; had to get on the bus
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