Skip to content

Commit

Permalink
Add some rules for tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera authored May 3, 2024
1 parent 1b1bd9d commit 955b916
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cdn-config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ export default new Router()
});
})

.match('/', ({ setComment }) => {
setComment("Homepage")
})

.match('/swaggerui', ({ setComment }) => {
setComment("Swagger UI")
})

.match('/postman', ({ setComment }) => {
setComment("Postman")
})

.match('/api/:path*', ({ setComment }) => {
setComment("API route")
})


// Here is an example where we cache api/* at the edge but prevent caching in the browser
// .match('/api/:path*', {
// caching: {
Expand Down

0 comments on commit 955b916

Please sign in to comment.