9 lines
301 B
TypeScript
9 lines
301 B
TypeScript
/* global defineEventHandler */
|
|
|
|
import { database } from "../utils/database";
|
|
|
|
export default defineEventHandler(async () => {
|
|
const [owo] = await database.execute("SELECT * FROM `sch_baza_smartfony`.`lombardy`");
|
|
|
|
return owo as {id: number, nazwa: string, adres: string, kontakt: string}[];
|
|
});
|