aboutsummaryrefslogtreecommitdiff
path: root/src/services/GuestbookService.js
blob: 53376d79a89be543c51ed904c83a0928d6c6c195 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { pb } from './pocketbase'

export async function createMessage(data) {
    try {
        return await pb.collection('guestbook').create(data);
    } catch (error) {
        console.error(error);
        throw error;
    }
}