Profile like/dislike endpoint

This commit is contained in:
2026-01-19 21:09:33 -07:00
parent bd399d43a8
commit 566d704ba1
2 changed files with 114 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ import { handler as berrydashProfileGetHandler } from './routes/berrydash/profil
import { handler as berrydashProfilePostsDeleteHandler } from './routes/berrydash/profile/posts/delete'
import { handler as berrydashProfilePostsGetHandler } from './routes/berrydash/profile/posts/get'
import { handler as berrydashProfilePostsPostHandler } from './routes/berrydash/profile/posts/post'
import { handler as berrydashProfilePostsPutHandler } from './routes/berrydash/profile/posts/put'
dotenv.config()
@@ -55,6 +56,8 @@ app.get('/berrydash/profile/posts', context =>
app.post('/berrydash/profile/posts', context =>
berrydashProfilePostsPostHandler(context)
)
app.put('/berrydash/profile/posts', context =>
berrydashProfilePostsPutHandler(context)
)
app.all('*', () =>
jsonResponse(