summaryrefslogtreecommitdiffhomepage
path: root/config/routes.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-04-08 21:58:55 -0400
committerrealtradam <[email protected]>2024-04-08 21:58:55 -0400
commit5d6c31ab4b3b6b663485021c697a41e2a2531b9c (patch)
tree47a9ba9933f5c73d617d106fecce6891316d1e5d /config/routes.rb
parent05294b07c551c708b3bc51e2964ae01fcdfdd25f (diff)
downloadgameHolster-5d6c31ab4b3b6b663485021c697a41e2a2531b9c.tar.gz
gameHolster-5d6c31ab4b3b6b663485021c697a41e2a2531b9c.zip
add blog index
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 06dda8f..5025b1b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,14 @@
Rails.application.routes.draw do
+ namespace :api do
+ namespace :v1 do
+ get 'blogs/index', to: 'blog#index'
+ post 'blogs/create', to: 'blog#create'
+ get '/show/:id', to: 'blog#show'
+ delete '/destroy/:id', to: 'blog#destroy'
+ end
+ end
root 'homepage#index'
+ #get '/*path' => 'homepage#index'
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.