1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Moved api call to a service

This commit is contained in:
2016-03-02 13:34:41 +00:00
parent 459585fce2
commit 817e1fb0c1
6 changed files with 35 additions and 20 deletions

View File

@@ -56,6 +56,7 @@ Wrestling::Application.routes.draw do
get "/api/tournaments" => "api#tournaments"
get "/api/tournaments/:tournament" => "api#tournament"
get "/api/index" => "api#index"
post "/api/tournaments/new" => "newTournament"
# Example of regular route:
# get 'products/:id' => 'catalog#view'