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';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::article.article', {
|
export default factories.createCoreRouter('api::article.article');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,17 +4,11 @@ export default {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/articles/distinct-years',
|
path: '/custom/articles/distinct-years',
|
||||||
handler: 'api::article.article.distinctYears',
|
handler: 'api::article.article.distinctYears',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/articles/year/:year',
|
path: '/custom/articles/year/:year',
|
||||||
handler: 'api::article.article.findByYear',
|
handler: 'api::article.article.findByYear',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
|
@ -4,13 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::collection-lookup.collection-lookup', {
|
export default factories.createCoreRouter('api::collection-lookup.collection-lookup');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,13 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::event.event', {
|
export default factories.createCoreRouter('api::event.event');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,17 +4,11 @@ export default {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/events/distinct-years',
|
path: '/custom/events/distinct-years',
|
||||||
handler: 'api::event.event.distinctYears',
|
handler: 'api::event.event.distinctYears',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/events/year/:year',
|
path: '/custom/events/year/:year',
|
||||||
handler: 'api::event.event.findByYear',
|
handler: 'api::event.event.findByYear',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
|
@ -4,10 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::global.global', {
|
export default factories.createCoreRouter('api::global.global');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,10 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::homepage.homepage', {
|
export default factories.createCoreRouter('api::homepage.homepage');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,17 +4,11 @@ export default {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/operations/distinct-years',
|
path: '/custom/operations/distinct-years',
|
||||||
handler: 'api::operation.operation.distinctYears',
|
handler: 'api::operation.operation.distinctYears',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/custom/operations/year/:year',
|
path: '/custom/operations/year/:year',
|
||||||
handler: 'api::operation.operation.findByYear',
|
handler: 'api::operation.operation.findByYear',
|
||||||
config: {
|
|
||||||
auth: false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
};
|
};
|
|
@ -4,13 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::operation.operation', {
|
export default factories.createCoreRouter('api::operation.operation');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,13 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::page.page', {
|
export default factories.createCoreRouter('api::page.page');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -4,13 +4,4 @@
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::vehicle.vehicle', {
|
export default factories.createCoreRouter('api::vehicle.vehicle');
|
||||||
config: {
|
|
||||||
find: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
findOne: {
|
|
||||||
auth: false
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"name": "Apache 2.0",
|
"name": "Apache 2.0",
|
||||||
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
"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": {
|
"x-strapi-config": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
|
Loading…
Reference in a new issue