export const del = ( { locals } ) => { locals . session . destroy ( ) ; return { body : { ok : true } } ; } ; export const post = ( { locals } ) => { let theme = locals . session . data ?. theme ?? "light" ; theme = theme === "light" ? "dark" : "light" ; locals . session . data = { theme } ; return { body : { currentTheme : theme } } ; } ;