Новые правки
This commit is contained in:
parent
79db7c8563
commit
a5f208a132
19 changed files with 852 additions and 1 deletions
17
frontend/scripts/test-login.ts
Normal file
17
frontend/scripts/test-login.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pb = new PocketBase('https://avt-back.ru');
|
||||
|
||||
async function main() {
|
||||
console.log('Проверяем коллекции на production:\n');
|
||||
|
||||
try {
|
||||
// Попробуем разные способы
|
||||
const result = await pb.collections.getFullList();
|
||||
console.log('Коллекции:', result.map(c => c.name).join(', '));
|
||||
} catch (e: any) {
|
||||
console.log('Ошибка:', e.message);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue