From 8b7f43d15a3e02210567268f9673047bd32245f9 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Fri, 17 Jan 2025 19:51:33 +0300 Subject: [PATCH] mode todo in todo folder --- server/{data => routers/todo}/const.js | 0 server/{data => routers/todo}/model/todo/item.js | 0 server/{data => routers/todo}/model/todo/list.js | 0 server/routers/todo/routes.js | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename server/{data => routers/todo}/const.js (100%) rename server/{data => routers/todo}/model/todo/item.js (100%) rename server/{data => routers/todo}/model/todo/list.js (100%) 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()