forked from b00tc4mp/isdi-parttime-202309
-
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.
modify files to apply new logics b00tc4mp#407
- Loading branch information
Showing
8 changed files
with
68 additions
and
51 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
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import registerUserHandler from './registerUserHandler.js' | ||
import authenticateUserHandler from './authenticateUserHandler.js' | ||
import retrieveUserHandler from './retrieveUserHandler.js' | ||
import createRecipeHandler from './createRecipeHandler.js' | ||
|
||
|
||
export { | ||
registerUserHandler, | ||
authenticateUserHandler, | ||
retrieveUserHandler | ||
retrieveUserHandler, | ||
createRecipeHandler | ||
} |
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
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import registerUser from './registerUser.js' | ||
import authenticateUser from './authenticateUser.js' | ||
import retrieveUser from './retrieveUser.js' | ||
import createRecipe from './createRecipe.js' | ||
|
||
const logic = { | ||
registerUser, | ||
authenticateUser, | ||
retrieveUser | ||
retrieveUser, | ||
createRecipe | ||
} | ||
|
||
export default logic |
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
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ import { API_URL } from '../utils/constants' | |
import { SystemError } from 'com/errors' | ||
|
||
export default async function retrieveUser() { | ||
|
||
// no faltaria passar el paràmetre de l'id? | ||
return (async () => { | ||
const req = { | ||
method: 'GET', | ||
|
@@ -40,8 +40,4 @@ export default async function retrieveUser() { | |
throw new SystemError(error.message) | ||
} | ||
})() | ||
// return Promise.resolve({ | ||
// name: "Belén", | ||
// email: "[email protected]" | ||
// }) | ||
} |
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