Initial commit

This commit is contained in:
Jose Selesan
2026-04-08 22:53:11 -03:00
commit 9ae270609d
179 changed files with 28096 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import type { AppContext } from '@/types/hono'
import { getComplexBySlug } from '@/modules/complex/services/complex.service'
type ComplexSlugParams = { slug: string }
export async function getComplexBySlugHandler(c: AppContext) {
const { slug } = c.req.valid('param' as never) as ComplexSlugParams
const complex = await getComplexBySlug(slug)
if (!complex) {
return c.json({ message: 'Complejo no encontrado.' }, 404)
}
return c.json(complex)
}