remove no auth as no population passed
This commit is contained in:
parent
c27e8d3f4b
commit
e8fae6dcfb
12 changed files with 9 additions and 93 deletions
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
]
|
||||
};
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
]
|
||||
};
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
]
|
||||
};
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue