GET https://darkmode.datasektionen.se/ - returns the current darkmode status as either true or false with the Content-Type header set to application/json.
| Name | Description |
|---|---|
PORT |
The port to listen for connections on |
WEBHOOKS |
A list of urls separated by commas. A GET request will be sent to each of these with the header X-Darkmode-Event: updated when the darkmode status (might have) changed |
LOGIN_FRONTEND_URL |
Origin at which the browser can reach the login system's frontend |
LOGIN_API_URL |
Origin at which the backend can reach the login system's api |
LOGIN_API_KEY |
API key for login |
HIVE_URL |
Origin to hive |
HIVE_API_KEY |
API key for Hive with $hive:api-check-permissions permission |
REDIS_URL |
Where to connect to redis. Example: redis://:password@hostname:6379 |
Darkmode depends on login and Hive. The system name in Hive is darkmode and it checks the permission switch.