velocious 1.0.0 → 1.0.1

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/index.cjs CHANGED
@@ -2,10 +2,12 @@ const Application = require("./src/application.cjs")
2
2
  const Controller = require("./src/controller.cjs")
3
3
  const Database = require("./src/database/index.cjs")
4
4
  const HttpServer = require("./src/http-server/index.cjs")
5
+ const Routes = require("./src/routes/index.cjs")
5
6
 
6
7
  module.exports = {
7
8
  Application,
8
9
  Controller,
9
10
  Database,
10
- HttpServer
11
+ HttpServer,
12
+ Routes
11
13
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "velocious",
3
- "version": "1.0.0",
4
- "main": "index.js",
3
+ "version": "1.0.1",
4
+ "main": "index.cjs",
5
5
  "scripts": {
6
6
  "test": "jasmine"
7
7
  },
@@ -5,7 +5,7 @@ module.exports = class VelociousConfiguration {
5
5
  if (!directory) throw new Error("No directory given")
6
6
 
7
7
  // Every client need to make their own routes because they probably can't be shared across different worker threads
8
- const {routes} = require(`${directory}/src/routes.cjs`)
8
+ const {routes} = require(`${directory}/src/config/routes.cjs`)
9
9
 
10
10
  this.debug = debug
11
11
  this.directory = directory