room.controller.js 282 Bytes
Newer Older
Kim, Chaerin's avatar
Kim, Chaerin committed
1
2
import { Room } from "../models/index.js";

Kim, Chaerin's avatar
서버    
Kim, Chaerin committed
3
const test = async (req, res) => {
Kim, Chaerin's avatar
Kim, Chaerin committed
4
  try {
Kim, Chaerin's avatar
.    
Kim, Chaerin committed
5
    console.log("room= ", req.body);
Kim, Chaerin's avatar
Kim, Chaerin committed
6
7
8
9
10
11
12
13
    res.json("안녕");
  } catch (error) {
    console.log(error);
    return res.status(500).send("안녕 중 에러");
  }
};

export default {
Kim, Chaerin's avatar
서버    
Kim, Chaerin committed
14
  test,
Kim, Chaerin's avatar
Kim, Chaerin committed
15
};