aboutsummaryrefslogtreecommitdiff
path: root/src/serializers/user_serializer.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/serializers/user_serializer.cr')
-rw-r--r--src/serializers/user_serializer.cr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/serializers/user_serializer.cr b/src/serializers/user_serializer.cr
new file mode 100644
index 0000000..1a86f14
--- /dev/null
+++ b/src/serializers/user_serializer.cr
@@ -0,0 +1,8 @@
+class UserSerializer < BaseSerializer
+ def initialize(@user : User)
+ end
+
+ def render
+ {email: @user.email}
+ end
+end