first commit
This commit is contained in:
12
backend/app.js
Normal file
12
backend/app.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import express from 'express';
|
||||
import cors from 'cors';
|
||||
import notesRoutes from './routes/notes.routes.js';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
|
||||
app.use('/api/notes', notesRoutes);
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user