Documentation ¶
Overview ¶
This file provides a rewrap of the relevant remux package. This is done to make migration easier, and to minimize the impact of this refactor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API ¶
func API(r chi.Router, db *database.Connection, contentStore contentstore.Store, logger *slog.Logger)
func Web ¶
func Web(r chi.Router, db *database.Connection, contentStore contentstore.Store, config *WebConfig)
Types ¶
type WebConfig ¶
type WebConfig struct { DBConnection *database.Connection AuthSchemes []authschemes.AuthScheme CSRFAuthKey []byte SessionStoreKey []byte UseSecureCookies bool Logger *slog.Logger }
Click to show internal directories.
Click to hide internal directories.