Created
May 12, 2018 10:06
-
-
Save SevenOutman/abb214eb82d131ec65affafed674f26d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const endpoints = registerEndpoints( | |
GET`/users`([User]), | |
GET`/users/:id`(User), | |
POST`/users`(User), | |
) | |
const users = await endpoints.getUsers.call() | |
const user1 = await endpoints.getUsersId.call({id: 1}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment