Get the stored theme preference.
GET
/api/dashboard/theme
const url = 'https://api.tradr.cloud/api/dashboard/theme';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tradr.cloud/api/dashboard/themeAuthed. Answered with Cache-Control: no-store.
Responses
Section titled “Responses”The theme.
Media typeapplication/json
object
theme
string
Example
{ "theme": "light"}