add readme, expand tests

This commit is contained in:
Timo Hocker
2019-12-11 12:01:34 +01:00
parent 6d6dfe1991
commit 0d52156d3c
3 changed files with 64 additions and 1 deletions

View File

@ -57,7 +57,8 @@ describe('requestor', () => {
'put-/sub/',
'delete-/sub/',
'all-/sub/',
'get-/sub/lv1/lv2/lv3/'
'get-/sub/lv1/lv2/lv3/',
'all-/sub/root/'
]);
});
});

3
test/sub/all-sub.root.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = (req, res, next, opts) => {
// dummy endpoint: do nothing
};