Feat: GDPRモードを追加した

Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
mattyatea 2023-12-31 18:19:59 +09:00
parent cb1586658e
commit 74e45b13eb
No known key found for this signature in database
GPG key ID: 068E54E2C33BEF9A
13 changed files with 83 additions and 8 deletions

View file

@ -138,6 +138,7 @@ export const paramDef = {
type: 'string',
},
},
enableGDPRMode: { type: 'boolean' },
},
required: [],
} as const;
@ -209,6 +210,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (ps.infoImageUrl !== undefined) {
set.infoImageUrl = ps.infoImageUrl;
}
console.log(ps.enableGDPRMode);
if (ps.enableGDPRMode !== undefined) {
set.enableGDPRMode = ps.enableGDPRMode;
}
if (ps.notFoundImageUrl !== undefined) {
set.notFoundImageUrl = ps.notFoundImageUrl;