Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 22d747e

Browse files
authored
Merge pull request #48 from atom/404-for-root-path
Respond with 404 (not 401) for requests to `/`
2 parents c40a3e7 + 17950a3 commit 22d747e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/controller-layer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = ({modelLayer, pubSubGateway, identityProvider, fetchICEServers,
1313
app.use(cors())
1414
app.use(bodyParser.json({limit: '1mb'}))
1515
app.use(enforceProtocol)
16-
app.use(authenticate({identityProvider, ignoredPaths: ['/protocol-version', '/boomtown', '/_ping']}))
16+
app.use(authenticate({identityProvider, ignoredPaths: ['/', '/protocol-version', '/boomtown', '/_ping']}))
1717
app.use(bugsnag.requestHandler)
1818

1919
app.get('/protocol-version', function (req, res) {

0 commit comments

Comments
 (0)