@worktango/ai-assistant 0.0.31 → 0.0.33
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.
- package/dist/express.js +2 -2
- package/package.json +1 -1
package/dist/express.js
CHANGED
|
@@ -4465,11 +4465,11 @@ import_dayjs6.default.extend(import_timezone2.default);
|
|
|
4465
4465
|
function setupAiAssistantRoutes(args) {
|
|
4466
4466
|
const logger = coalesce(args.logger, console);
|
|
4467
4467
|
const routePath = args.route ?? "/ai-assistant";
|
|
4468
|
-
args.app.
|
|
4468
|
+
args.app.use(
|
|
4469
4469
|
routePath,
|
|
4470
4470
|
...coalesce(args.preflightMiddlewares, []),
|
|
4471
4471
|
async (req, res) => {
|
|
4472
|
-
const bearerToken = await args.getBearerToken().catch((error) => {
|
|
4472
|
+
const bearerToken = await args.getBearerToken(req).catch((error) => {
|
|
4473
4473
|
logger.error("Error getting bearer token:", error);
|
|
4474
4474
|
res.status(500).send("Error getting bearer token");
|
|
4475
4475
|
return null;
|