@peopl-health/nexus 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,7 +110,7 @@ const createAssistantController = async (req, res) => {
|
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
const getInfoAssistantController = async (req, res) => {
|
|
113
|
-
const { code } = req.
|
|
113
|
+
const { code } = req.query;
|
|
114
114
|
|
|
115
115
|
try {
|
|
116
116
|
let threadInfo = await getThreadInfo(code);
|
package/lib/routes/index.js
CHANGED
|
@@ -6,7 +6,7 @@ const assistantRouteDefinitions = {
|
|
|
6
6
|
'POST /add-instruction': 'addInsAssistantController',
|
|
7
7
|
'POST /add-msg': 'addMsgAssistantController',
|
|
8
8
|
'POST /create': 'createAssistantController',
|
|
9
|
-
'
|
|
9
|
+
'GET /info': 'getInfoAssistantController',
|
|
10
10
|
'GET /list': 'listAssistantController',
|
|
11
11
|
'POST /switch': 'switchAssistantController',
|
|
12
12
|
'POST /stop': 'stopAssistantController'
|