오늘 SS 3.0에서 3.1로 업그레이드했고 업데이트 이후에 시스템이 내 확장 프로그램 _ _config 폴더에서 routes.yml 파일을 감지하지 못하는 것 같습니다.업그레이드 후 업그레이드가 작동하지 않습니다.
---
Name: pusherroutes
After:
- '#rootroutes'
---
Director:
rules:
# handle old 2.4 style urls
'pusher/$Action': 'PusherController'
나는 또한 내 컨트롤러 액션을 화이트리스트에 정적 내 allowed_actions을 설정 한 : 여기 내 내 Extension/_config/routes.yml 파일의 예입니다
class PusherController extends Controller {
public static $allowed_actions = array (
'ChatAuth',
'SendMessage',
'NotifyAuth'
);
}
내가 mysite.com/로 이동 pusher/SendMessage 시스템이 더 이상 나를 컨트롤러의 액션 메소드로 안내하지 않습니다. 내 네트워크 탭에 반환되는 응답은 Silverstripe 시작 페이지입니다.