octalens-mentions 0.0.6 → 0.0.7
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/server/index.js +13 -0
- package/dist/server/index.mjs +13 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -4,6 +4,19 @@ const bootstrap = ({ strapi }) => {
|
|
|
4
4
|
const destroy = ({ strapi }) => {
|
|
5
5
|
};
|
|
6
6
|
const register = ({ strapi }) => {
|
|
7
|
+
strapi.server.use(async (ctx, next) => {
|
|
8
|
+
if (ctx.path === "/api/octalens-mentions/ingest" && ctx.method === "POST") {
|
|
9
|
+
console.log("=== INGEST REQUEST RECEIVED ===");
|
|
10
|
+
console.log("Path:", ctx.path);
|
|
11
|
+
console.log("Method:", ctx.method);
|
|
12
|
+
console.log("Content-Type:", ctx.request.headers["content-type"]);
|
|
13
|
+
if (ctx.request.body) {
|
|
14
|
+
console.log("Parsed Body:", JSON.stringify(ctx.request.body, null, 2));
|
|
15
|
+
}
|
|
16
|
+
console.log("=================================");
|
|
17
|
+
}
|
|
18
|
+
await next();
|
|
19
|
+
});
|
|
7
20
|
};
|
|
8
21
|
const config = {
|
|
9
22
|
default: {},
|
package/dist/server/index.mjs
CHANGED
|
@@ -3,6 +3,19 @@ const bootstrap = ({ strapi }) => {
|
|
|
3
3
|
const destroy = ({ strapi }) => {
|
|
4
4
|
};
|
|
5
5
|
const register = ({ strapi }) => {
|
|
6
|
+
strapi.server.use(async (ctx, next) => {
|
|
7
|
+
if (ctx.path === "/api/octalens-mentions/ingest" && ctx.method === "POST") {
|
|
8
|
+
console.log("=== INGEST REQUEST RECEIVED ===");
|
|
9
|
+
console.log("Path:", ctx.path);
|
|
10
|
+
console.log("Method:", ctx.method);
|
|
11
|
+
console.log("Content-Type:", ctx.request.headers["content-type"]);
|
|
12
|
+
if (ctx.request.body) {
|
|
13
|
+
console.log("Parsed Body:", JSON.stringify(ctx.request.body, null, 2));
|
|
14
|
+
}
|
|
15
|
+
console.log("=================================");
|
|
16
|
+
}
|
|
17
|
+
await next();
|
|
18
|
+
});
|
|
6
19
|
};
|
|
7
20
|
const config = {
|
|
8
21
|
default: {},
|
package/package.json
CHANGED