Switch auth to plain-text password env var (remove bcrypt)
- Replace ADMIN_PASSWORD_HASH with ADMIN_PASSWORD in auth route and docker-compose - Remove bcryptjs / @types/bcryptjs dependencies - Delete scripts/hashPassword.ts (no longer needed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,15 @@ modulesRouter.delete('/:id', async (req: Request, res: Response, next: NextFunct
|
||||
}
|
||||
});
|
||||
|
||||
modulesRouter.post('/:id/move', async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
const { rackId, uPosition } = req.body as { rackId: string; uPosition: number };
|
||||
res.json(ok(await moduleService.moveModule(req.params.id, rackId, uPosition)));
|
||||
} catch (e) {
|
||||
next(e);
|
||||
}
|
||||
});
|
||||
|
||||
modulesRouter.get('/:id/ports', async (req: Request, res: Response, next: NextFunction) => {
|
||||
try {
|
||||
res.json(ok(await moduleService.getModulePorts(req.params.id)));
|
||||
|
||||
Reference in New Issue
Block a user