Skip to content

Commit

Permalink
feat: Replace express with native http module
Browse files Browse the repository at this point in the history
* refactor: replace express with native http module

* fix: 404 when unhandled

* chore: removed express dependency

* chore: updated package-lock.json

* docs: added documentation for BaseHttpServerFactory

* chore: updated package-lock.json

Co-authored-by: Arthur Joppart <[email protected]>
  • Loading branch information
lem-onade and BelgianNoise authored Feb 11, 2021
1 parent 0ffd332 commit ce1f430
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 400 deletions.
8 changes: 4 additions & 4 deletions config/presets/http.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"@id": "urn:solid-server:default:ServerFactory",
"@type": "WebSocketServerFactory",
"WebSocketServerFactory:_baseServerFactory": {
"@id": "urn:solid-server:default:ExpressHttpServerFactory"
"@id": "urn:solid-server:default:HttpServerFactory"
},
"WebSocketServerFactory:_webSocketHandler": {
"@id": "urn:solid-server:default:WebSocketHandler"
}
},
{
"@id": "urn:solid-server:default:ExpressHttpServerFactory",
"@type": "ExpressHttpServerFactory",
"ExpressHttpServerFactory:_handler": {
"@id": "urn:solid-server:default:HttpServerFactory",
"@type": "BaseHttpServerFactory",
"BaseHttpServerFactory:_handler": {
"@id": "urn:solid-server:default:HttpHandler"
}
},
Expand Down
Loading

0 comments on commit ce1f430

Please sign in to comment.