mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
add Context.SetVersion helper
Former-commit-id: 605d6c1e78f73b8f2c89bd2dc7ee23f21551d47b
This commit is contained in:
@@ -81,7 +81,9 @@ type ConfigurationReadOnly interface {
|
||||
// GetLanguageContextKey returns the configuration's LanguageContextKey value,
|
||||
// used for i18n. Defaults to "iris.locale.language".
|
||||
GetLanguageContextKey() string
|
||||
|
||||
// GetVersionContextKey returns the configuration's VersionKey value,
|
||||
// used for API Versioning. Defaults to "iris.api.version".
|
||||
GetVersionContextKey() string
|
||||
// GetViewLayoutContextKey returns the key of the context's user values' key
|
||||
// which is being used to set the template
|
||||
// layout from a middleware or the main handler.
|
||||
|
||||
Reference in New Issue
Block a user