Skip to content

Commit eb121a0

Browse files
committed
small fix
1 parent 892b6db commit eb121a0

File tree

2 files changed

+1
-2322
lines changed

2 files changed

+1
-2322
lines changed

routes/api/contacts.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
const express = require('express')
2-
const contacts = require("../../models/contacts")
32

43
const router = express.Router()
54

65
router.get('/', async (req, res, next) => {
7-
const result = await contacts.listContacts();
8-
res.json(result)
6+
res.json({ message: 'template message' })
97
})
108

119
router.get('/:contactId', async (req, res, next) => {

0 commit comments

Comments
 (0)