Account Dashboard Card

This commit is contained in:
2024-10-27 00:12:27 +02:00
parent f8e1a191b3
commit e464b52394
4 changed files with 43 additions and 3 deletions

View File

@@ -8,6 +8,15 @@ import { Exercise } from "../models/exercises/exercise.model";
export const account = Router()
account.get("/", (req: Request, res: Response) => {
Account.findAll({
include: [ AccountRole ]
})
.then(accounts => {
res.status(200).json(accounts)
})
})
// Login user
account.post("/login", (req: Request, res: Response) => {
Account.findOne({