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.
Sinatra で Angularjs アプリを実行しています。
アプリ内のリンクをクリックすると Angular ルートが機能しますが、URL に直接アクセスすると Sinatra から 404 が返されます。
Sinatra から Angular にルーティングを渡す方法はありますか?
現在、Sinatra が行っているのは、index.html の読み込みだけです。
get '/' do File.read "#{Dir.pwd}/app/index.html" end