Skip to content

Commit

Permalink
feat: create ApiKey collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Oct 17, 2024
1 parent e88ae83 commit 2a8c46c
Show file tree
Hide file tree
Showing 5 changed files with 3,777 additions and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# [0.42.0](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.41.0...v0.42.0) (2024-10-16)


### Features

* add categories textWhite option ([e2bfb36](https://github.com/SocialGouv/carte-jeune-engage/commit/e2bfb36be267790115570e3023845b48824eaabc))
- add categories textWhite option ([e2bfb36](https://github.com/SocialGouv/carte-jeune-engage/commit/e2bfb36be267790115570e3023845b48824eaabc))

# [0.41.0](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.40.4...v0.41.0) (2024-10-16)

Expand Down
20 changes: 20 additions & 0 deletions webapp/src/payload/collections/ApiKey.ts
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,
},
],
};
Loading

0 comments on commit 2a8c46c

Please sign in to comment.