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:
parent
1699146f79
commit
683c948f6c
6 changed files with 96 additions and 23 deletions
5
api.js
5
api.js
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue