apache - Sinatra app with Grape API -


i'm running sinatra app along grape. i've seen other postings on in how run 2 or other rack compliant solutions, though quandary bit different.

i need preface solutions i've noticed run 2 show have grape mounted on route, though that's not i'm doing. simply: rack::cascade.new[sinatraapp,grapeapi] working should, except when deployed out apache noticed stderr logs out calls api 404, though returning json.

i setting mime types out default_format :json on grape routes. not happening? have angular making calls grape via $http service , i confirm in dev tools receiving application/json types.

what doing wrong here?


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -