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

@ -92,13 +92,9 @@ module.exports = (app) => {
} else { } else {
method = SERVE; method = SERVE;
} }
} else {
if (headers['accept'] && !headers['accept'].split(',').includes('text/html')) {
method = SERVE;
} else { } else {
method = SHOW; 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)) {
let tempName = name; let tempName = name;