adapt-authoring-server 1.0.3 → 1.0.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/lib/ServerModule.js +2 -2
- package/package.json +2 -15
package/lib/ServerModule.js
CHANGED
|
@@ -59,14 +59,14 @@ class ServerModule extends AbstractModule {
|
|
|
59
59
|
* Starts the HTTP server
|
|
60
60
|
*/
|
|
61
61
|
async start () {
|
|
62
|
-
// Initialise the
|
|
62
|
+
// Initialise the routers
|
|
63
|
+
this.api.init()
|
|
63
64
|
this.root.init()
|
|
64
65
|
// Initialise the API router
|
|
65
66
|
this.api.expressRouter.get('/', ServerUtils.mapHandler(this.api).bind(this))
|
|
66
67
|
this.api.addMiddleware(
|
|
67
68
|
ServerUtils.debugRequestTime
|
|
68
69
|
)
|
|
69
|
-
this.api.init()
|
|
70
70
|
// add not-found handlers
|
|
71
71
|
this.api.expressRouter.use(ServerUtils.apiNotFoundHandler.bind(this))
|
|
72
72
|
this.root.expressRouter.use(ServerUtils.rootNotFoundHandler.bind(this))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Provides an Express application routing and more",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-server",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -16,14 +16,9 @@
|
|
|
16
16
|
"adapt-authoring-core": "github:adapt-security/adapt-authoring-core"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
20
19
|
"@semantic-release/git": "^10.0.1",
|
|
21
|
-
"@semantic-release/github": "^12.0.2",
|
|
22
|
-
"@semantic-release/npm": "^13.1.2",
|
|
23
|
-
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
24
20
|
"conventional-changelog-eslint": "^6.0.0",
|
|
25
21
|
"semantic-release": "^25.0.2",
|
|
26
|
-
"semantic-release-replace-plugin": "^1.2.7",
|
|
27
22
|
"standard": "^17.1.0"
|
|
28
23
|
},
|
|
29
24
|
"release": {
|
|
@@ -42,15 +37,7 @@
|
|
|
42
37
|
],
|
|
43
38
|
"@semantic-release/npm",
|
|
44
39
|
"@semantic-release/github",
|
|
45
|
-
|
|
46
|
-
"@semantic-release/git",
|
|
47
|
-
{
|
|
48
|
-
"assets": [
|
|
49
|
-
"package.json"
|
|
50
|
-
],
|
|
51
|
-
"message": "Chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
40
|
+
"@semantic-release/git"
|
|
54
41
|
]
|
|
55
42
|
}
|
|
56
43
|
}
|