(url, content, mimeType)
| 144 | |
| 145 | // assumed to be dev time frame, if this is to be used for production it should be enhanced |
| 146 | function set(url, content, mimeType) { |
| 147 | if (url.charAt(0) !== '/') { url = '/'+url; } |
| 148 | var point = getPoint(url) || new KnownPoint(url); |
| 149 | // console.info('new url:',url, mimeType); |
| 150 | point.content = content; |
| 151 | point.mimeType = mimeType; |
| 152 | } |
| 153 | |
| 154 | function cachedMiddleware(req, res, next) { |
| 155 | var point = getPoint(req); |
nothing calls this directly
no test coverage detected