strapi-security-suite 0.2.1 → 0.2.3
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 -1
- package/dist/server/index.mjs +14 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -260,7 +260,6 @@ const bootstrap = async ({ strapi: strapi2 }) => {
|
|
|
260
260
|
async function ensureDefaultSecuritySettings(strapi2) {
|
|
261
261
|
try {
|
|
262
262
|
const existing = await strapi2.entityService.findMany("plugin::strapi-security-suite.security-settings");
|
|
263
|
-
console.log(existing);
|
|
264
263
|
if (Array.isArray(existing) && existing.length > 0) {
|
|
265
264
|
strapi2.log.info("✅ Default security settings already exist.");
|
|
266
265
|
return;
|
|
@@ -362,6 +361,20 @@ const controllers = {
|
|
|
362
361
|
};
|
|
363
362
|
const policies = {};
|
|
364
363
|
const routes = [
|
|
364
|
+
{
|
|
365
|
+
method: "GET",
|
|
366
|
+
path: "/health",
|
|
367
|
+
handler: async (ctx) => {
|
|
368
|
+
ctx.send({
|
|
369
|
+
status: "ok",
|
|
370
|
+
uptime: process.uptime(),
|
|
371
|
+
timestamp: Date.now()
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
config: {
|
|
375
|
+
auth: false
|
|
376
|
+
}
|
|
377
|
+
},
|
|
365
378
|
{
|
|
366
379
|
method: "GET",
|
|
367
380
|
path: "/admin/settings",
|
package/dist/server/index.mjs
CHANGED
|
@@ -257,7 +257,6 @@ const bootstrap = async ({ strapi: strapi2 }) => {
|
|
|
257
257
|
async function ensureDefaultSecuritySettings(strapi2) {
|
|
258
258
|
try {
|
|
259
259
|
const existing = await strapi2.entityService.findMany("plugin::strapi-security-suite.security-settings");
|
|
260
|
-
console.log(existing);
|
|
261
260
|
if (Array.isArray(existing) && existing.length > 0) {
|
|
262
261
|
strapi2.log.info("✅ Default security settings already exist.");
|
|
263
262
|
return;
|
|
@@ -359,6 +358,20 @@ const controllers = {
|
|
|
359
358
|
};
|
|
360
359
|
const policies = {};
|
|
361
360
|
const routes = [
|
|
361
|
+
{
|
|
362
|
+
method: "GET",
|
|
363
|
+
path: "/health",
|
|
364
|
+
handler: async (ctx) => {
|
|
365
|
+
ctx.send({
|
|
366
|
+
status: "ok",
|
|
367
|
+
uptime: process.uptime(),
|
|
368
|
+
timestamp: Date.now()
|
|
369
|
+
});
|
|
370
|
+
},
|
|
371
|
+
config: {
|
|
372
|
+
auth: false
|
|
373
|
+
}
|
|
374
|
+
},
|
|
362
375
|
{
|
|
363
376
|
method: "GET",
|
|
364
377
|
path: "/admin/settings",
|
package/package.json
CHANGED