aboutsummaryrefslogtreecommitdiff
path: root/routes/requests.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/requests.go')
-rw-r--r--routes/requests.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/routes/requests.go b/routes/requests.go
new file mode 100644
index 0000000..a0bc13f
--- /dev/null
+++ b/routes/requests.go
@@ -0,0 +1,21 @@
+package routes
+
+import "gitrepo.ru/neonxp/gorum/models"
+
+type loginRequest struct {
+ Email string `form:"email"`
+ Password string `form:"password"`
+ Remember string `form:"remember"`
+}
+
+type registerRequest struct {
+ Username string `form:"username"`
+ Email string `form:"email"`
+ Password string `form:"password"`
+ Password2 string `form:"password2"`
+}
+
+type nodeRequest struct {
+ Type models.NodeType `form:"type"`
+ Text string `form:"text"`
+}