summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorTradam <[email protected]>2024-05-16 19:06:29 -0400
committerTradam <[email protected]>2024-05-16 19:06:29 -0400
commit43237d776e311ebd00b36c0048ec339a4da5b15b (patch)
tree34e68000fe7475fa7a96db8c189132ba7cc752c1 /config
parent6ae14ae3a10d79e5f0b70b1b1af74e8a3507bb83 (diff)
downloadgameHolster-43237d776e311ebd00b36c0048ec339a4da5b15b.tar.gz
gameHolster-43237d776e311ebd00b36c0048ec339a4da5b15b.zip
upgrade auth, user and game
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e89c5c0..c3f7ad7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,12 +3,13 @@ Rails.application.routes.draw do
namespace :v1 do
# isolated domain, do not allow auth here
- constraints domain: 'localhost' do
+ constraints host: 'localhost' do
# GAMES
- get 'games/*path/:file', to: 'games#index'
+ get 'game/:user/:game/*path/:file', to: 'games#index'
+ get 'game/:user/:game/:file', to: 'games#index'
end
- constraints domain: "127.0.0.1" do
+ constraints host: "127.0.0.1" do
# USERS
get 'users/index', to: 'users#index'
#get 'users/new'
@@ -16,7 +17,8 @@ Rails.application.routes.draw do
#get 'users/delete'
# GAMES
- #resources :games
+ post 'games', to: 'games#create'
+ resources :games
# BLOGS
get 'blogs/index', to: 'blog#index'
@@ -28,6 +30,7 @@ Rails.application.routes.draw do
get 'auth/callback', to: 'auth#callback'
get 'auth/data', to: 'auth#data'
end
+
end
end
root 'homepage#index'