Use tailwind css
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import db from "../../../lib/db";
|
||||
|
||||
const handler = async (req, res) => {
|
||||
const { method } = req;
|
||||
|
||||
switch (method) {
|
||||
case "GET":
|
||||
await get(req, res);
|
||||
default:
|
||||
res.setHeader("Allow", ["GET"]);
|
||||
res.status(405).end(`Method ${method} Not Allowed`);
|
||||
}
|
||||
};
|
||||
|
||||
const get = async (req, res) => {
|
||||
const params = {
|
||||
TableName: process.env.FMN_DYNAMODB_TABLENAME,
|
||||
KeyConditionExpression: "hk = :hk",
|
||||
ExpressionAttributeValues: { ":hk": "benramey@fastmail.com" },
|
||||
};
|
||||
|
||||
let user = await db.query(params).promise();
|
||||
|
||||
res.status(200).json(user);
|
||||
};
|
||||
|
||||
export default handler;
|
||||
Reference in New Issue
Block a user