Skip to content

Commit 955b916

Browse files
authored
Add some rules for tracking
1 parent 1b1bd9d commit 955b916

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

cdn-config/routes.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ export default new Router()
2727
});
2828
})
2929

30+
.match('/', ({ setComment }) => {
31+
setComment("Homepage")
32+
})
33+
34+
.match('/swaggerui', ({ setComment }) => {
35+
setComment("Swagger UI")
36+
})
37+
38+
.match('/postman', ({ setComment }) => {
39+
setComment("Postman")
40+
})
41+
42+
.match('/api/:path*', ({ setComment }) => {
43+
setComment("API route")
44+
})
45+
46+
3047
// Here is an example where we cache api/* at the edge but prevent caching in the browser
3148
// .match('/api/:path*', {
3249
// caching: {

0 commit comments

Comments
 (0)