mirror of
https://github.com/pawelmalak/snippet-box.git
synced 2025-12-22 05:33:56 +01:00
Search feature. Changed how controller fetches tags
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user