我为移动平台开发了Rest Web服务。 我的网络服务是
select MAX ( e.SnapshotDate ) OVER () AS SnapshotId
,e.[SnapshotDate]
,e.[EmployeeNumber]
,e.[UserStatus]
,e.[AssignmentStatus]
,e.[EmpDateLatestStart]
,e.[DateOfLeaving]
,e.[PeriodEndDate]
,s.[LocationNumber]
,e.[DateFirstHired]
,e.[JobName]
from [data].[table] e
INNER JOIN [data].[hierarchy] s ON e.[LocationNumber] = s.[LocationNumber]
WHERE x.SnapshotId <= 26
AND e.[LeavingContext] IN ('Dismissal','End of Contract','Mutual Agreement','N/A','Resignation')
但是从移动平台调用了一项Web服务
domain.com/new_task/index.php/Users/get_user
现在移动应用已更新,我无法从移动平台更改此Web服务。 我只想在此网址上自动路由此网络服务
domain.com/new_task/index.php/get_user_mob
请帮助我解决这个问题
答案 0 :(得分:0)
只需在配置中将此行添加到您的routes.php
$ route ['get_user_mob'] ='用户/ get_user';
它将使事情正常工作。