diff --git a/application/api/account/login.js b/application/api/account/login.js new file mode 100644 index 0000000..6ed5bd1 --- /dev/null +++ b/application/api/account/login.js @@ -0,0 +1,13 @@ +({ + access: 'public', + + parameters: { + token: 'string', + }, + + method: ({ token }) => { + return token; + }, + + returns: 'string', +}); diff --git a/application/api/account/signup.js b/application/api/account/signup.js new file mode 100644 index 0000000..32b9381 --- /dev/null +++ b/application/api/account/signup.js @@ -0,0 +1,13 @@ +({ + access: 'public', + + parameters: { + email: 'string', + }, + + method: ({ email }) => { + return email; + }, + + returns: 'string', +}); diff --git a/application/api/router.1.js b/application/api/router.1.js new file mode 100644 index 0000000..b8e7f5e --- /dev/null +++ b/application/api/router.1.js @@ -0,0 +1,7 @@ +({ + router({ method, args, verb, headers }) { + const ip = context.client.ip; + console.log({ method, args, ip, verb, headers }); + return args; + }, +}); diff --git a/application/domain/repository.js b/application/domain/repository.js new file mode 100644 index 0000000..90d94b4 --- /dev/null +++ b/application/domain/repository.js @@ -0,0 +1,3 @@ +async () => { + return {}; +};