@vyckr/tachyon 1.1.4 → 1.1.5

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.4",
3
+ "version": "1.1.5",
4
4
  "author": "Chidelma",
5
5
  "repository": {
6
6
  "type": "git",
package/src/serve.ts CHANGED
@@ -156,4 +156,4 @@ const elapsed = Date.now() - start
156
156
 
157
157
  console.info(`Live Server is running on http://${server.hostname}:${server.port} (Press CTRL+C to quit) - ${elapsed.toFixed(2)}ms`)
158
158
 
159
- console.info(`Available Routes:\n\t${Object.keys(Router.reqRoutes).join('\n\t')}`)
159
+ // console.info(`Available Routes:\n\t${Object.keys(Router.reqRoutes).join('\n\t')}`)
@@ -231,6 +231,12 @@ export default class Tach {
231
231
  }
232
232
 
233
233
  if(Router.reqRoutes['//*']) delete Router.reqRoutes['//*']
234
+
235
+ if(!Router.reqRoutes['/']) {
236
+ Router.reqRoutes['/'] = {
237
+ GET: serverRoute
238
+ }
239
+ }
234
240
  }
235
241
  }
236
242
  }