diff --git a/server/data/const.js b/server/routers/todo/const.js similarity index 100% rename from server/data/const.js rename to server/routers/todo/const.js diff --git a/server/data/model/todo/item.js b/server/routers/todo/model/todo/item.js similarity index 100% rename from server/data/model/todo/item.js rename to server/routers/todo/model/todo/item.js diff --git a/server/data/model/todo/list.js b/server/routers/todo/model/todo/list.js similarity index 100% rename from server/data/model/todo/list.js rename to server/routers/todo/model/todo/list.js diff --git a/server/routers/todo/routes.js b/server/routers/todo/routes.js index b81716e..736b1d5 100644 --- a/server/routers/todo/routes.js +++ b/server/routers/todo/routes.js @@ -1,7 +1,7 @@ const { Router } = require('express') -const { ListModel } = require('../../data/model/todo/list') -const { ItemModel } = require('../../data/model/todo/item') +const { ListModel } = require('./model/todo/list') +const { ItemModel } = require('./model/todo/item') const { getAnswer } = require('../../utils/common') const router = Router()