mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Add example in address routes
This commit is contained in:
parent
d057976298
commit
5acbd1e6f2
@ -2,4 +2,13 @@
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::address.address');
|
||||
module.exports = createCoreRouter('api::address.address', {
|
||||
prefix: '/my-prefix',
|
||||
config: {
|
||||
find: {
|
||||
auth: false,
|
||||
},
|
||||
},
|
||||
only: ['find', 'findOne'],
|
||||
// except: [],
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user