darkmode

command module
v0.0.0-...-ccbd6c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 15 Imported by: 0

README

Darkmode

API

GET https://darkmode.datasektionen.se/ - returns the current darkmode status as either true or false with the Content-Type header set to application/json.

Env variables

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
PLS_URL Origin to pls
REDIS_URL Where to connect to redis. Example: redis://:password@hostname:6379

Other systems

Darkmode depends on login and pls. The system name in pls is darkmode and it checks the permission switch.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL