🚨 configGlobal
function replaced with .config
method in builders
The configGlobal
function has been deprecated and replaced with the .config
method for configuring default settings in builders. You can now customize the configuration more easily.
const pub = os
.context<{user?: {id: string}}>()
.config({ // Optional configuration to override defaults
initialRoute: {
method: 'DELETE', // Set the default HTTP method to DELETE
inputStructure: 'detailed', // Set the default input structure to 'detailed'
outputStructure: 'detailed' // Set the default output structure to 'detailed'
}
})