Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serifcolakel/requester-app
https://github.com/serifcolakel/requester-app
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/serifcolakel/requester-app
- Owner: serifcolakel
- Created: 2024-04-06T22:29:38.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-15T21:59:56.000Z (9 months ago)
- Last Synced: 2024-04-16T10:21:57.236Z (9 months ago)
- Language: TypeScript
- Homepage: https://requester-app-kappa.vercel.app
- Size: 691 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
const handleCreateVariable = async (formData: FormData) => {
"use server";const { userId } = auth();
if (!userId) {
throw new Error("User not authenticated");
}const name = formData.get("name") as string;
const value = formData.get("value") as string;
await db.variable.create({
data: {
name,
value,
environmentId: userId,
},
});};