@jcbuisson/express-x 1.0.17 → 1.0.18
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/index.mjs +2 -2
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -143,7 +143,7 @@ function expressX(app, options={}) {
|
|
|
143
143
|
/*
|
|
144
144
|
* add an HTTP REST endpoint at `path`, based on `service`
|
|
145
145
|
*/
|
|
146
|
-
function
|
|
146
|
+
function addHttpRest(path, service) {
|
|
147
147
|
const context = {
|
|
148
148
|
app,
|
|
149
149
|
http: { name: service.name }
|
|
@@ -300,7 +300,7 @@ function expressX(app, options={}) {
|
|
|
300
300
|
createService,
|
|
301
301
|
service,
|
|
302
302
|
configure,
|
|
303
|
-
|
|
303
|
+
addHttpRest,
|
|
304
304
|
server,
|
|
305
305
|
joinChannel,
|
|
306
306
|
leaveChannel,
|