We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb64e71 commit ad9cbddCopy full SHA for ad9cbdd
test/server/plural.js
@@ -11,7 +11,8 @@ describe('Server', () => {
11
'/api/': '/',
12
'/blog/posts/:id/show': '/posts/:id',
13
'/comments/special/:userId-:body': '/comments/?userId=:userId&body=:body',
14
- '/firstpostwithcomments': '/posts/1?_embed=comments'
+ '/firstpostwithcomments': '/posts/1?_embed=comments',
15
+ '/articles?_id=:id': '/posts/:id'
16
}
17
18
beforeEach(() => {
@@ -704,6 +705,14 @@ describe('Server', () => {
704
705
.end(done)
706
})
707
708
+ // TODO
709
+ // it('should rewrite query params', (done) => {
710
+ // request(server)
711
+ // .get('/articles?_id=1')
712
+ // .expect(db.posts[0])
713
+ // .end(done)
714
+ // })
715
+
716
it('should expose routes', (done) => {
717
request(server)
718
.get('/__rules')
0 commit comments