remove no auth as no population passed

This commit is contained in:
Julian Krauser 2024-11-05 08:32:58 +01:00
parent c27e8d3f4b
commit e8fae6dcfb
12 changed files with 9 additions and 93 deletions

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::article.article', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
},
});
export default factories.createCoreRouter('api::article.article');

View file

@ -4,17 +4,11 @@ export default {
method: 'GET',
path: '/custom/articles/distinct-years',
handler: 'api::article.article.distinctYears',
config: {
auth: false,
},
},
{
method: 'GET',
path: '/custom/articles/year/:year',
handler: 'api::article.article.findByYear',
config: {
auth: false,
},
},
]
};

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::collection-lookup.collection-lookup', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
}
});
export default factories.createCoreRouter('api::collection-lookup.collection-lookup');

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::event.event', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
}
});
export default factories.createCoreRouter('api::event.event');

View file

@ -4,17 +4,11 @@ export default {
method: 'GET',
path: '/custom/events/distinct-years',
handler: 'api::event.event.distinctYears',
config: {
auth: false,
},
},
{
method: 'GET',
path: '/custom/events/year/:year',
handler: 'api::event.event.findByYear',
config: {
auth: false,
},
},
]
};

View file

@ -4,10 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::global.global', {
config: {
find: {
auth: false
},
}
});
export default factories.createCoreRouter('api::global.global');

View file

@ -4,10 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::homepage.homepage', {
config: {
find: {
auth: false
},
}
});
export default factories.createCoreRouter('api::homepage.homepage');

View file

@ -4,17 +4,11 @@ export default {
method: 'GET',
path: '/custom/operations/distinct-years',
handler: 'api::operation.operation.distinctYears',
config: {
auth: false,
},
},
{
method: 'GET',
path: '/custom/operations/year/:year',
handler: 'api::operation.operation.findByYear',
config: {
auth: false,
},
},
]
};

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::operation.operation', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
}
});
export default factories.createCoreRouter('api::operation.operation');

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::page.page', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
}
});
export default factories.createCoreRouter('api::page.page');

View file

@ -4,13 +4,4 @@
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::vehicle.vehicle', {
config: {
find: {
auth: false
},
findOne: {
auth: false
},
}
});
export default factories.createCoreRouter('api::vehicle.vehicle');

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-11-04T14:45:06.170Z"
"x-generation-date": "2024-11-05T07:32:30.586Z"
},
"x-strapi-config": {
"plugins": [