setUserSetting.post.ts 230 Bytes
Newer Older
1 2
export default defineEventHandler(async (event) => {
    let username = event.context.username
3 4 5
    const body = await readBody(event)
    const { table, key, value } = body
    await setPgTableData( table, username, key, value)
6
})