Skip to content

Instantly share code, notes, and snippets.

@eduardopoleo
Created July 26, 2016 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardopoleo/70f5caa6126f220730061f9e61d171ac to your computer and use it in GitHub Desktop.
Save eduardopoleo/70f5caa6126f220730061f9e61d171ac to your computer and use it in GitHub Desktop.
#routes.rb
root 'staff#vertical'
#Main route where we are going to bootstrap our application
get 'vertical' => 'staff#vertical'
#Routes where we are dumping the JSON data.
get 'all_salaries' => 'averages#all_salaries', defaults: { format: 'json' }
get 'professors_only' => 'averages#professors_only', defaults: { format: 'json' }
get 'administrative_staff' => 'averages#administrative_staff', defaults: { format: 'json' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment