added a api call /api/users

This commit is contained in:
2025-01-16 21:26:30 -05:00
parent 9580f78ef5
commit fcaf392e83
5 changed files with 29 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
"use server";
import { eq, not , asc} from "drizzle-orm";
import { revalidatePath } from "next/cache";
import { db } from "../db";
import { db } from "@db/index";
import { brands } from "@schemas/schema";
export const getData = async () => {
const data = await db.select().from(brands).orderBy(asc(brands.name));