@stouder-io/adonis-sitemap

0.0.7 • Public • Published

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'] })

Package Sidebar

Install

npm i @stouder-io/adonis-sitemap

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

25.7 kB

Total Files

21

Last publish

Collaborators

  • xstoudi