diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index b2b0338..66cf30f 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,4 +2,8 @@ class HomeController < ApplicationController def home render json: {status: 200} end + + def profile + render json: {name: "Amparo"} + end end diff --git a/config/routes.rb b/config/routes.rb index 65b9d57..226c4e4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html get "home", to: "home#home" + get "profile" => 'home#profile' end