class NanoController

Public Instance Methods

index() click to toggle source
# File lib/bridgetown-plugin-nano/templates/new_app/nano_controller.rb, line 2
def index
  render json: {
    status: "index route",
    hello: "Howdy! I'm Nano, your friendly neighborhood Ruby on Rails backend. :)",
    current_time: Time.now
  }
end
show() click to toggle source
# File lib/bridgetown-plugin-nano/templates/new_app/nano_controller.rb, line 10
def show
  render json: {
    status: "show route",
    id: params[:id]
  }
end