@vyckr/tachyon 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/tach.ts +2 -6
package/package.json
CHANGED
package/src/server/tach.ts
CHANGED
|
@@ -158,6 +158,8 @@ export default class Tach {
|
|
|
158
158
|
|
|
159
159
|
static createServerRoutes() {
|
|
160
160
|
|
|
161
|
+
if(!Router.allRoutes.has('/')) Router.allRoutes.set('/', new Set(['GET']))
|
|
162
|
+
|
|
161
163
|
for(const [route, methods] of Router.allRoutes) {
|
|
162
164
|
|
|
163
165
|
const serverRoute = async (request?: BunRequest, server?: Server) => {
|
|
@@ -231,12 +233,6 @@ export default class Tach {
|
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
if(Router.reqRoutes['//*']) delete Router.reqRoutes['//*']
|
|
234
|
-
|
|
235
|
-
if(!Router.reqRoutes['/']) {
|
|
236
|
-
Router.reqRoutes['/'] = {
|
|
237
|
-
GET: serverRoute
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
236
|
}
|
|
241
237
|
}
|
|
242
238
|
}
|