-
If you use the ES6 Module Syntax for the itty router per the documentation, the line, `.handle(...args)` throws an error: `A spread argument must either have a tuple type or be passed to a rest parame…
-
Some work has already been done on this in the form of a preliminary message definition in Packet.hpp, but I realized there's no GitHub issue for it so here we go.
This probably will not make it into…
-
Would be mice to have some middleware to handle basic authentication. Or, is there already something that works nicely? was thinking about basic-auth from express, but not sure how it'll jive with T…
-
Folks, I'm in the middle of converting the entire library over to TS for the 3.0 release (which bring extras into the core lib for added convenience). That said, I'm a novice (at best) in TS, which c…
-
So in this example, I have set my `wrangler.toml` registered to listen on `legit.website.example/plans/*`, and my router registered on `/plans/plans.json`.
The issue here is that in production, I …
-
-
Based on an example of the [itty router](https://itty-router.dev/#/#cf-es6-module-syntax) library I was doing:
```ts
const router = OpenAPIRouter();
// ...
const worker: ExportedHandler = { fetc…
-
When using a non-root/non-default `base` value, the Swagger UI seems to ignore what we set.
```javascript
const router = OpenAPIRouter({
base: '/plans'
})
```
i.e. in the example above, Swa…
-
So this is a rather big shift/departure from the previous setup, but here are the reasons:
- I use itty-router-extras 100% of the time with itty, and i'm sure many others would too
- currently, wi…
-
The documentation shows that you can do this in plain JS to support multi-route upstream middleware:
```
// middleware that injects a user, but doesn't return
const withUser = request => {
req…