aboutsummaryrefslogtreecommitdiff
path: root/src/actions/api/sign_ups/create.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/api/sign_ups/create.cr')
-rw-r--r--src/actions/api/sign_ups/create.cr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/api/sign_ups/create.cr b/src/actions/api/sign_ups/create.cr
new file mode 100644
index 0000000..15bbd04
--- /dev/null
+++ b/src/actions/api/sign_ups/create.cr
@@ -0,0 +1,8 @@
+class Api::SignUps::Create < ApiAction
+ include Api::Auth::SkipRequireAuthToken
+
+ post "/api/sign_ups" do
+ user = SignUpUser.create!(params)
+ json({token: UserToken.generate(user)})
+ end
+end