Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JSON、認証モードなどの必要な API 機能を追加しながら、新しいコードを作成することなくコントローラーの操作を再利用できるように、バックパックに使用される CRUD コントローラーの API エンドポイントを公開するにはどうすればよいですか?
バックパック ルートは XHR リクエストの API エンドポイントのように機能するように見えるためHTTP_X-Requested-With、値を含むヘッダーを追加すると、XMLHttpRequestバックパックが JSON で返されます
HTTP_X-Requested-With
XMLHttpRequest