@igea/oac_backend 1.0.94 → 1.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_backend",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "Backend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -199,26 +199,6 @@ router.post('/upload/vocabularies', upload.array('files'), (req, res) => {
199
199
  }
200
200
 
201
201
  });
202
-
203
-
204
- const key = req.params.key;
205
- const cache = CacheVocabularies.check(key);
206
-
207
- if (cache.exists) {
208
- //res.setHeader('Content-Type', 'application/x-www-form-urlencoded');
209
- //res.sendFile(path.resolve(cache.path));
210
- res.type('text/turtle');
211
- console.log("nuova versione "+filePath);
212
- fs.createReadStream(filePath)
213
- .on('error', err => {
214
- console.error('STREAM ERROR:', err.code);
215
- if (!res.headersSent) {
216
- res.status(404).send('Cache missing');
217
- }
218
- })
219
- .pipe(res);
220
-
221
-
222
202
  //---------------------------------------------------------------
223
203
  router.get('/get-vocabolary-terms/:key', (req, res) => {
224
204
  const key = req.params.key;