Category model and controllers

This commit is contained in:
unknown
2021-05-22 19:04:34 +02:00
parent 5c948e1a68
commit 100f274d96
8 changed files with 164 additions and 4 deletions

1
api.js
View File

@@ -14,6 +14,7 @@ api.use(express.json());
api.use('/api/apps', require('./routes/apps'));
api.use('/api/config', require('./routes/config'));
api.use('/api/weather', require('./routes/weather'));
api.use('/api/categories', require('./routes/category'));
// Custom error handler
api.use(errorHandler);