strapi-security-suite 0.2.1 → 0.2.2
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 +14 -0
- package/dist/server/index.mjs +14 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -362,6 +362,20 @@ const controllers = {
|
|
|
362
362
|
};
|
|
363
363
|
const policies = {};
|
|
364
364
|
const routes = [
|
|
365
|
+
{
|
|
366
|
+
method: "GET",
|
|
367
|
+
path: "/health",
|
|
368
|
+
handler: async (ctx) => {
|
|
369
|
+
ctx.send({
|
|
370
|
+
status: "ok",
|
|
371
|
+
uptime: process.uptime(),
|
|
372
|
+
timestamp: Date.now()
|
|
373
|
+
});
|
|
374
|
+
},
|
|
375
|
+
config: {
|
|
376
|
+
auth: false
|
|
377
|
+
}
|
|
378
|
+
},
|
|
365
379
|
{
|
|
366
380
|
method: "GET",
|
|
367
381
|
path: "/admin/settings",
|
package/dist/server/index.mjs
CHANGED
|
@@ -359,6 +359,20 @@ const controllers = {
|
|
|
359
359
|
};
|
|
360
360
|
const policies = {};
|
|
361
361
|
const routes = [
|
|
362
|
+
{
|
|
363
|
+
method: "GET",
|
|
364
|
+
path: "/health",
|
|
365
|
+
handler: async (ctx) => {
|
|
366
|
+
ctx.send({
|
|
367
|
+
status: "ok",
|
|
368
|
+
uptime: process.uptime(),
|
|
369
|
+
timestamp: Date.now()
|
|
370
|
+
});
|
|
371
|
+
},
|
|
372
|
+
config: {
|
|
373
|
+
auth: false
|
|
374
|
+
}
|
|
375
|
+
},
|
|
362
376
|
{
|
|
363
377
|
method: "GET",
|
|
364
378
|
path: "/admin/settings",
|
package/package.json
CHANGED