Skip to content

Commit 6805f36

Browse files
committed
docs: fix example import path for copy-paste usage
1 parent 6c15d0a commit 6805f36

File tree

6 files changed

+8349
-6
lines changed

6 files changed

+8349
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ router.get('/', async (call) => {
4646

4747
הראוטר מקבל פונקצייה אסינכרונית, שהארגומנט שהיא מקבלת מהראוטר הוא אובייקט `Call` (יבואר בהמשך), המייצג את השיחה, ובאמצעות המתודות שלו ניתן לקבל מידע אודות השיחה, להשמיע/לבקש נתונים מהמחייג, להפנות אותו לשלוחה אחרת, ועוד.
4848

49-
**👨‍💻 דוגמה בסיסית: [example.js](example.js)**
49+
**👨‍💻 דוגמה בסיסית: [example-app/index.js](example-app/index.js)**
5050

5151
**טיפ**: מומלץ מאוד לא להגדיר בשלוחה `api_hangup_send=no`, לביצועי זיכרון טובים יותר.
5252

example.js renamed to example-app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import express from 'express';
2-
import { YemotRouter } from './index.js';
2+
import { YemotRouter } from 'yemot-router2';
33
import { fileURLToPath } from 'url';
44
import process from 'process';
55
export const app = express();
@@ -25,7 +25,7 @@ router.events.on('new_call', (call) => {
2525
console.log(`[example.js] new call ${call.callId} from ${call.phone}`);
2626
});
2727

28-
/** @param {import('./index.js').Call} call */
28+
/** @param {import('yemot-router2').Call} call */
2929
async function callHandler (call) {
3030
// לא ניתן להתקדם ללא הקשת 10 וסולמית
3131
await call.read([{ type: 'text', data: 'היי, תקיש 10' }], 'tap', {

0 commit comments

Comments
 (0)