mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Start of api
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user