From bf2a188f82f176db719e156ab90c1ca18d6e65f9 Mon Sep 17 00:00:00 2001 From: Frank Rousseau Date: Fri, 5 Jan 2018 03:55:05 +0100 Subject: [PATCH] Remove default paramter for api routes --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c74280774..3194915e0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -221,7 +221,7 @@ Rails.application.routes.draw do root :to => 'home#show' get "podmin", to: "home#podmin" - api_version(module: "Api::V1", path: {value: "api/v1"}, default: true) do + api_version(module: "Api::V1", path: {value: "api/v1"}) do match "user", to: "users#show", via: %i[get post] resources :posts, only: %i[show create destroy] do resources :comments, only: %i[create destroy]