validateApiRoutes
validateApiRoutes(
name,routes,basePath):void
Defined in: packages/core/src/lambda/define.ts:166
The route-array validator (D10). Shared so tests can exercise it directly.
Throws on:
- empty
routes[]; basePathnot starting with ”/”;- a relative path (no leading ”/”) when
basePathis unset; - an absolute path (leading ”/”) when
basePathIS set (mixed forms); - a duplicate
{method, effectivePath}within one handler.
Parameters
Section titled “Parameters”string
routes
Section titled “routes”readonly object[]
basePath
Section titled “basePath”string
Returns
Section titled “Returns”void
© 2026 Axis Tech. Powered by axis-tech.co.