Search feature. Changed how controller fetches tags

This commit is contained in:
Paweł Malak
2021-10-14 15:09:04 +02:00
parent b04d042255
commit fa7f54d0e1
5 changed files with 81 additions and 31 deletions

View File

@@ -7,6 +7,7 @@ import { errorHandler } from './middleware';
// Routers
import { snippetRouter } from './routes/snippets';
import { associateModels } from './db/associateModels';
// Env config
dotenv.config({ path: './src/config/.env' });
@@ -32,6 +33,7 @@ app.use(errorHandler);
(async () => {
await connectDB();
await associateModels();
app.listen(PORT, () => {
logger.log(