Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
migrate from router to endpoint (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfriesen authored Jan 5, 2024
1 parent 22e3a50 commit 63de645
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ A Qpoint adapter for rewriting the response html using the HtmlRewriter rules
Note: This adapter is useless without registered HtmlRewriter rules. Usually this adapter is added after other adapters that register rules.

```ts
import Router from "@qpoint/router";
import Endpoint from "@qpoint/endpoint";
import rewriteHtml from "@qpoint/rewrite-html";

export default new Router()
export default new Endpoint()
.use(rewriteHtml())
```

Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"release": "npm publish --access=public"
},
"dependencies": {
"@qpoint/router": "^0.2.0"
"@qpoint/endpoint": "^0.0.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.5.1",
"@types/node": "^17.0.25",
"typescript": "^4.6.3"
"typescript": "^4.9.5"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Context } from '@qpoint/router'
import { Context } from '@qpoint/endpoint'

export interface RewriteHtmlConfig {
// nothing for now
Expand All @@ -21,4 +21,4 @@ export default function rewriteHtml(config: RewriteHtmlConfig = {}) {
// continue along
return next()
}
}
}

0 comments on commit 63de645

Please sign in to comment.