From 211ca0bc8b42679547c2a85add15956115547dd3 Mon Sep 17 00:00:00 2001 From: Si Choi Date: Wed, 29 Apr 2020 18:12:40 +0900 Subject: [PATCH] changing response --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 0d3db1e..7d96eb9 100644 --- a/server.js +++ b/server.js @@ -23,7 +23,7 @@ const db = knex({ app.use(express.json()); app.use(cors()); -app.get('/', (req, res) => {res.send(database.users);}) +app.get('/', (req, res) => {res.send('it is working!');}) app.post('/signin', (req, res) => { signin.handleSignin(req, res, db, bcrypt) }) app.post('/register', (req, res) => { register.handleRegister(req, res, db, bcrypt) }) app.get('/profile/:id', (req, res) => { profile.handleProfile(req, res, db) })