-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e88ae83
commit 2a8c46c
Showing
5 changed files
with
3,777 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { type CollectionConfig } from "payload/types"; | ||
|
||
export const ApiKeys: CollectionConfig = { | ||
slug: "apikeys", | ||
labels: { | ||
singular: "Clé API", | ||
plural: "Clés API", | ||
}, | ||
fields: [ | ||
{ | ||
name: "key", | ||
type: "text", | ||
label: "Clé API", | ||
required: true, | ||
unique: true, | ||
minLength: 32, | ||
maxLength: 32, | ||
}, | ||
], | ||
}; |
Oops, something went wrong.