route giving 404 in sinatra
<p>I have just started working on <code>sinatra</code>, now my application is not able to navigate upto route and get data from db, I am always getting 404. This is what I am doing.</p>

<h1>File Structure</h1>

<pre><code>app
|----&gt;helpers
|-----&gt;models
|-----&gt;public
|-----&gt;routes
|        |-------&gt;candidate.rb 
|        |-------&gt;init.rb
|-----&gt;app.rb
|-----&gt;config.ru
</code></pre>

<h1>config.ru</h1>

<pre><code>require './app'
run MyApp
</code></pre>

<h1>app.rb</h1>

<pre><code>require 'json'
require 'sinatra'
require 'data_mapper'
require 'dm-migrations'
require 'sinatra/cross_origin'
require 'logger'
require './models/init'
require './helpers/init'
require './routes/init'


class MyApp &lt; Sinatra::Base
configure :development do
  enable :cross_origin
  DataMapper::Logger.new($stdout, :debug)
  DataMapper.setup(
    :default,
    'mysql://root:@localhost/hackerrank'
  )
end
get '/' do
  File.read(File.join('public', 'index.html'))
end

DataMapper.finalize
end
</code></pre>

<h1>Command</h1>

<pre><code>bundle exec rackup -p 4567 config.ru 
</code></pre>

<p>api in candidate.rb are correct but if i try to access the resource as <code>http://localhost:4567/#/recruiter</code>  I am getting 404 .
I am not able to figure out what is wrong I am doing here.</p>