問題タブ [connect-rest]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
198 参照

connect - connect-restを使用してgrunt-serveでPOSTをサポートしていますか?

connect-restミドルウェアgrunt serveで使用しようとしています。私はGETリクエストでは機能しましたが、POSTでは機能しなかったように設定しようとしました。私は何が欠けているのだろうか。これは私の Gruntfile.js (抜粋) です:connect-restGruntfile.js

...

それは魅力のように機能します。しかし、その1行を次のように変更すると:

また

次に、投稿すると、ログに次のエントリが表示されます(grunt --debugを実行):

[D] server POST /api/groups.json?cache=false&force=true&requesttime=2015-10-29T06:46:24.443Z 404 103 - 2.027 ms

投稿時の404エラー(作品を取得)。

何が恋しいですか?