-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mykhailo-vaskivnyuk
committed
Feb 7, 2024
1 parent
13e9d64
commit 5aa3ea5
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
async () => { | ||
return {}; | ||
}; |