diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,6 +10,8 @@ const app = express(); // Set static directory app.use(express.static(path.join(__dirname, 'public'))); +app.use('/api/members', require('./routes/api/members')); + const PORT = process.env.PORT || 3000; app.listen(PORT, () => console.log(`Server started on port ${PORT}`)); |