解析 action 字段 支持从 action 或 path 提取路由信息
UniCloud 事件对象
解析后的 action 字符串
// 纯路径parseAction({ path: '/user/getList' })// event.action = 'user/getList'// 带HTTP方法的路径parseAction({ action: 'GET user/getList' })// event.action = 'user/getList', event.httpMethod = 'GET' Copy
// 纯路径parseAction({ path: '/user/getList' })// event.action = 'user/getList'// 带HTTP方法的路径parseAction({ action: 'GET user/getList' })// event.action = 'user/getList', event.httpMethod = 'GET'
解析 action 字段 支持从 action 或 path 提取路由信息