export test api insomnia

This commit is contained in:
MDeghaud67
2023-04-03 15:51:22 +02:00
parent 5cad486150
commit 772cc8de9d
6 changed files with 40 additions and 0 deletions

7
IOT/lib/pocketbase.js Normal file
View File

@ -0,0 +1,7 @@
import PocketBase from 'pocketbase';
const pb = new PocketBase(process.env.PB_URL);
const authData = await pb.collection('users').authWithPassword('michel.deghaud@gmail.com', 'Kimbomaye67');
export default pb;