From 806a9a7508ee3682f9f04ae9d312b60f0b271298 Mon Sep 17 00:00:00 2001 From: Isaque Veras Date: Fri, 12 Apr 2024 22:40:24 -0300 Subject: [PATCH] feat(juaz): starting to model requests using Juaz --- protos/auth.juaz | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 protos/auth.juaz diff --git a/protos/auth.juaz b/protos/auth.juaz new file mode 100644 index 0000000..7294916 --- /dev/null +++ b/protos/auth.juaz @@ -0,0 +1,15 @@ +pkg authentication + +node User {} + +node Session {} + +impl login(User) Session { + method: POST + uri: /v1/auth/login +} + +impl create_account(User) User { + method: POST + uri: /v1/auth/create_account +}