removed switch that falls back to serve on show routes

This commit is contained in:
bill bittner 2017-08-07 10:54:07 -07:00
parent 5756375d3d
commit 4f6a000757

View file

@ -93,11 +93,7 @@ module.exports = (app) => {
method = SERVE; method = SERVE;
} }
} else { } else {
if (headers['accept'] && !headers['accept'].split(',').includes('text/html')) { method = SHOW;
method = SERVE;
} else {
method = SHOW;
}
} }
/* start: temporary patch for backwards compatability spee.ch/name/claim_id */ /* start: temporary patch for backwards compatability spee.ch/name/claim_id */
if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) { if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) {