Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RerouteToIndex ¶
func RerouteToIndex(blacklistPrefixes ...string) gin.HandlerFunc
RerouteToIndex returns a new middleware to handle not found paths (e.g. frontend routes) and route them to index The blacklistPrefixes prevent some path to be routed
Types ¶
Click to show internal directories.
Click to hide internal directories.