prestamo okay

This commit is contained in:
arturo
2020-08-28 11:29:44 -05:00
parent 4ccd7b674d
commit 9865e76ba9
13 changed files with 1157 additions and 35 deletions
+12
View File
@@ -0,0 +1,12 @@
import { Request } from 'express'
import { Response } from 'express-serve-static-core'
import { getRepository } from 'typeorm'
import { Tipo } from '@src/entity/Tipo'
export class TipoController {
static async getAll (req: Request, res: Response) {
const repository = await getRepository(Tipo)
const tipos = await repository.find()
res.status(200).json(tipos)
}
}