removed switch that falls back to serve on show routes
This commit is contained in:
parent
5756375d3d
commit
4f6a000757
1 changed files with 1 additions and 5 deletions
|
@ -93,11 +93,7 @@ module.exports = (app) => {
|
|||
method = SERVE;
|
||||
}
|
||||
} else {
|
||||
if (headers['accept'] && !headers['accept'].split(',').includes('text/html')) {
|
||||
method = SERVE;
|
||||
} else {
|
||||
method = SHOW;
|
||||
}
|
||||
method = SHOW;
|
||||
}
|
||||
/* start: temporary patch for backwards compatability spee.ch/name/claim_id */
|
||||
if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) {
|
||||
|
|
Loading…
Reference in a new issue