Added cli tool for adding new search engines/providers

This commit is contained in:
unknown
2021-08-06 16:16:13 +02:00
parent 1699146f79
commit 683c948f6c
6 changed files with 96 additions and 23 deletions

5
api.js
View File

@@ -9,8 +9,7 @@ api.use(express.static(join(__dirname, 'public')));
api.use('/uploads', express.static(join(__dirname, 'data/uploads')));
api.get(/^\/(?!api)/, (req, res) => {
res.sendFile(join(__dirname, 'public/index.html'));
})
});
// Body parser
api.use(express.json());
@@ -25,4 +24,4 @@ api.use('/api/bookmarks', require('./routes/bookmark'));
// Custom error handler
api.use(errorHandler);
module.exports = api;
module.exports = api;