1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-18 19:19:36 +02:00

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;