updating aws sdk to v3 - createPost now working

This commit is contained in:
Will Baumbach
2025-07-26 16:41:38 -05:00
parent 02d82bbde4
commit 61278967be
8 changed files with 1720 additions and 33 deletions

View File

@@ -11,7 +11,7 @@ export default function App() {
if (cameraRef.current) {
const pic = await cameraRef.current.takePictureAsync()
setPhoto(pic.base64 || '');
console.log(pic);
console.log(pic.base64);
}
}
@@ -19,7 +19,7 @@ export default function App() {
const response = await fetch("localhost:3000/api/v1/posts", {
method: "POST",
body: JSON.stringify({
user: '6883ddb2640ebaa1a12e3791',
userID: '6883ddb2640ebaa1a12e3791',
date: new Date(),
photo: photo,
notes: '3333 W Smoochie St'