@stouder-io/adonis-sitemap
v0.0.7
Published
Generate sitemaps for your AdonisJS application
Downloads
1
Maintainers
Readme
API
import router from '@adonisjs/core/services/router'
import UsersController from '#controllers/users_controller'
router.get(':lang/groups/:groupId/members/:id', [UsersController, 'index']).sitemap({
params: {
groupId: () => Group.all(),
memberId: () => Member.all()
},
changeFrequency: 'daily',
priority: 0.1
}).alternate({ lang: () => ['fr', 'en'] })