(req, lobby, _ctx)
| 24 | |
| 25 | export default { |
| 26 | async onFetch(req, lobby, _ctx) { |
| 27 | const url = new URL(req.url); |
| 28 | if (url.pathname === "/another") { |
| 29 | return lobby.assets.fetch("/another.html"); |
| 30 | } |
| 31 | }, |
| 32 | async onSocket( |
| 33 | socket: FetchSocket, |
| 34 | _env: FetchLobby, |