Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spicy tuna/feature/image-upload #147

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Spicytuna24
Copy link

Completed image upload route

}

if (idImage && id) {
const responseImage = await getImageById(idImage && id);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Spicytuna24 I'm a little confused, shouldn't you call getImageById() like this:

getImageById(idImage, id)

Assuming you can omit the filename from the arguments.

Making changes to the treeimages
router so it can accept requests
to upload and get images.

I use postman to test the routes.

The DB still needs to be set up,
so you can't actually add or get
images yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Help Wanted
Development

Successfully merging this pull request may close these issues.

2 participants