Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mykhailo-vaskivnyuk committed Feb 7, 2024
1 parent 13e9d64 commit 5aa3ea5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions application/api/account/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
({
access: 'public',

parameters: {
token: 'string',
},

method: ({ token }) => {
return token;
},

returns: 'string',
});
13 changes: 13 additions & 0 deletions application/api/account/signup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
({
access: 'public',

parameters: {
email: 'string',
},

method: ({ email }) => {
return email;
},

returns: 'string',
});
7 changes: 7 additions & 0 deletions application/api/router.1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
({
router({ method, args, verb, headers }) {
const ip = context.client.ip;
console.log({ method, args, ip, verb, headers });
return args;
},
});
3 changes: 3 additions & 0 deletions application/domain/repository.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async () => {
return {};
};

0 comments on commit 5aa3ea5

Please sign in to comment.