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

Start of api

This commit is contained in:
2016-02-10 15:16:58 +00:00
parent 731131073f
commit e215717914
8 changed files with 36 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ Wrestling::Application.routes.draw do
get 'tournaments/:id/error' => 'tournaments#error'
post "/tournaments/:id/swap" => "tournaments#swap", :as => :swap_wrestlers
#API
get "/api/tournaments" => "api#tournaments"
get "/api/tournaments/:tournament" => "api#tournament"
# Example of regular route:
# get 'products/:id' => 'catalog#view'