Skip to content

Commit a5cd6cb

Browse files
committed
fixing reference to path
1 parent 6ad9970 commit a5cd6cb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
var debug = require('debug')('ldnode:ws-app')
22
var SolidWs = require('./lib/server')
3+
var path = require('path')
34

45
module.exports = function attachToServer (server, app, opts) {
56
var solidWs = new SolidWs(server, opts)
67

78
if (app) {
8-
console.log("setting up the app")
9+
console.log('setting up the app')
910

1011
app.post('/*', function (req, res, next) {
11-
debug("pub " + req.originalUrl + ' after post')
12+
debug('pub ' + req.originalUrl + ' after post')
1213
solidWs.publish(req.originalUrl)
1314
solidWs.publish(path.basename(req.originalUrl))
1415
next()
1516
})
1617
app.patch('/*', function (req, res, next) {
17-
debug("pub " + req.originalUrl + ' after patch')
18+
debug('pub ' + req.originalUrl + ' after patch')
1819
solidWs.publish(req.originalUrl)
1920
console.log(solidWs.store)
2021
next()
2122
})
2223
app.put('/*', function (req, res, next) {
23-
debug("pub " + req.originalUrl + ' after put')
24+
debug('pub ' + req.originalUrl + ' after put')
2425
solidWs.publish(req.originalUrl)
2526
next()
2627
})
2728
app.delete('/*', function (req, res, next) {
28-
debug("pub " + req.originalUrl + ' after delete')
29+
debug('pub ' + req.originalUrl + ' after delete')
2930
solidWs.publish(req.originalUrl)
3031
solidWs.publish(path.basename(req.originalUrl))
3132
next()

0 commit comments

Comments
 (0)