Skip to content

Commit

Permalink
refactor(binding-http/server): introduce routes for each TD endpoint
Browse files Browse the repository at this point in the history
**Note**: that we are now use find-my-way for routing, which is a bit more
complex than the previous approach. However, it is also more flexible
and in the future we can easily add more routes or let user configure
them. Another caveat is the trailing slashes in the routes now map to
a total different path. For example, `/things` and `/things/` are now
different routes. In the future, we might review this behavior.
  • Loading branch information
relu91 committed Jul 19, 2023
1 parent a005e1f commit 8552953
Show file tree
Hide file tree
Showing 13 changed files with 898 additions and 555 deletions.
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/binding-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"basic-auth": "2.0.1",
"client-oauth2": "^4.2.5",
"eventsource": "^2.0.2",
"find-my-way": "^7.6.2",
"node-fetch": "^2.6.7",
"query-string": "^7.1.1",
"rxjs": "5.5.11",
Expand Down
Loading

0 comments on commit 8552953

Please sign in to comment.