@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyckr/tachyon",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "author": "Chidelma",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
  }