summaryrefslogtreecommitdiffhomepage
path: root/config/routes.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-06-07 00:19:18 -0400
committerrealtradam <[email protected]>2024-06-07 00:19:18 -0400
commitde44507f2a75e36c4cea05f250f0f3d24e1dd123 (patch)
tree10bc5973c62203693199a59ccb6327cb77107559 /config/routes.rb
parent22c1d8d71de2bd52513f684196fa66a53e7362aa (diff)
downloadgameHolster-de44507f2a75e36c4cea05f250f0f3d24e1dd123.tar.gz
gameHolster-de44507f2a75e36c4cea05f250f0f3d24e1dd123.zip
add tags
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 6f86bb7..ba4c647 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,10 +1,13 @@
Rails.application.routes.draw do
+ get 'tags/index'
+ get 'tags/create'
+ get 'tags/destroy'
#
# isolated domain, do not allow auth here
#constraints host: 'localhost' do
# GAMES
- get 'game/:user/:game/*path/:file', to: 'api/v1/games#play', constraints: { file: /[^\/]+/ }
- get 'game/:user/:game/:file', to: 'api/v1/games#play'
+ get 'game/:user/:game/*path/:file', to: 'api/v1/games#show_file', constraints: { file: /[^\/]+/ }
+ get 'game/:user/:game/:file', to: 'api/v1/games#show_file', constraints: { file: /[^\/]+/ }
#end
namespace :api do
@@ -17,11 +20,14 @@ Rails.application.routes.draw do
# GAMES
post 'games', to: 'games#create'
get 'games', to: 'games#index'
- #get 'games/:user/', to: 'games#show'
- #get 'games/:user/:game', to: 'games#show'
+ get 'games/:user/', to: 'games#show'
+ get 'games/:user/:game', to: 'games#show'
get 'games_img/:user/:game', to: 'games#show_img'
#resources :games
+ # TAGS
+ get 'tags', to: 'tags#index'
+
# AUTH
get 'auth/callback', to: 'auth#callback'
get 'auth/data', to: 'auth#data'