Completed
Push — master ( 27b20f...cb95fb )
by greg
49s
created

get-image.js ➔ route   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
import {
2
  cmsMedia
3
} from '../../cli'
4
5
var route = function(req, res){
6
  res.set('Content-Type', 'application/json')
7
  res.send(JSON.stringify(cmsMedia.image.getAssociatedImageFileFromThumb(req.query.name)))
8
}
9
10
export default route
11