create-jinmankn-app 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/HRMS (reba kuri iyi bro)/README.md +1 -0
- package/templates/{index/backend/controllers/authController.js → HRMS (reba kuri iyi bro)/backend/controllers/authController.js } +60 -10
- package/templates/HRMS (reba kuri iyi bro)/backend/cookiejar.txt +4 -0
- package/templates/HRMS (reba kuri iyi bro)/backend/middleware/auth.js +28 -0
- package/templates/{index/backend/models/User.js → HRMS (reba kuri iyi bro)/backend/models/User.js } +5 -0
- package/templates/{index/backend/package-lock.json → HRMS (reba kuri iyi bro)/backend/package-lock.json } +54 -13
- package/templates/{index/backend/package.json → HRMS (reba kuri iyi bro)/backend/package.json } +1 -0
- package/templates/HRMS (reba kuri iyi bro)/backend/routes/authRoutes.js +13 -0
- package/templates/{index/backend/routes/departmentRoutes.js → HRMS (reba kuri iyi bro)/backend/routes/departmentRoutes.js } +4 -4
- package/templates/{index/backend/routes/employeeRoutes.js → HRMS (reba kuri iyi bro)/backend/routes/employeeRoutes.js } +4 -4
- package/templates/{index/backend/routes/positionRoutes.js → HRMS (reba kuri iyi bro)/backend/routes/positionRoutes.js } +4 -4
- package/templates/{index/backend/routes/reportRoutes.js → HRMS (reba kuri iyi bro)/backend/routes/reportRoutes.js } +2 -2
- package/templates/{index/backend/server.js → HRMS (reba kuri iyi bro)/backend/server.js } +23 -1
- package/templates/{index/frontend/src/App.jsx → HRMS (reba kuri iyi bro)/frontend/src/App.jsx } +3 -1
- package/templates/{index/frontend/src/components/DashboardLayout.jsx → HRMS (reba kuri iyi bro)/frontend/src/components/DashboardLayout.jsx } +24 -5
- package/templates/{index/frontend/src/components/ProtectedRoute.jsx → HRMS (reba kuri iyi bro)/frontend/src/components/ProtectedRoute.jsx } +2 -2
- package/templates/{index/frontend/src/main.jsx → HRMS (reba kuri iyi bro)/frontend/src/main.jsx } +4 -1
- package/templates/HRMS (reba kuri iyi bro)/frontend/src/pages/CreateUser.jsx +150 -0
- package/templates/{index/frontend/src/pages/DashboardHome.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/DashboardHome.jsx } +4 -4
- package/templates/{index/frontend/src/pages/Department.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Department.jsx } +47 -36
- package/templates/{index/frontend/src/pages/Employee.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Employee.jsx } +27 -16
- package/templates/{index/frontend/src/pages/Login.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Login.jsx } +7 -3
- package/templates/{index/frontend/src/pages/Position.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Position.jsx } +27 -16
- package/templates/{index/frontend/src/pages/Register.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Register.jsx } +10 -6
- package/templates/{index/frontend/src/pages/Reports.jsx → HRMS (reba kuri iyi bro)/frontend/src/pages/Reports.jsx } +2 -3
- package/templates/HRMS (reba kuri iyi bro)/frontend/vite.config.js +18 -0
- package/templates/index/README.md +0 -34
- package/templates/index/backend/middleware/auth.js +0 -27
- package/templates/index/backend/routes/authRoutes.js +0 -11
- package/templates/index/frontend/vite.config.js +0 -7
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/config/db.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/departmentController.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/employeeController.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/positionController.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/reportController.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/models/Department.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/models/Employee.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/models/Position.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/backend/routes/protectedRoutes.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/README.md +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/eslint.config.js +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/index.html +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/package-lock.json +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/package.json +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/public/favicon.svg +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/src/App.css +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/src/assets/hero.png +0 -0
- /package/templates/{index → HRMS (reba kuri iyi bro)}/frontend/src/index.css +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const express = require('express');
|
|
2
|
-
const { register, login, getMe } = require('../controllers/authController');
|
|
3
|
-
const { protect } = require('../middleware/auth');
|
|
4
|
-
|
|
5
|
-
const router = express.Router();
|
|
6
|
-
|
|
7
|
-
router.post('/register', register);
|
|
8
|
-
router.post('/login', login);
|
|
9
|
-
router.get('/me', protect, getMe);
|
|
10
|
-
|
|
11
|
-
module.exports = router;
|
|
File without changes
|
/package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/departmentController.js
RENAMED
|
File without changes
|
/package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/employeeController.js
RENAMED
|
File without changes
|
/package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/positionController.js
RENAMED
|
File without changes
|
/package/templates/{index → HRMS (reba kuri iyi bro)}/backend/controllers/reportController.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|