You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
301 B

class PeopleController < ApplicationController
skip_before_action :verify_authenticity_token
def index
render json: Person.all
end
def show
render json: Person.find(params[:id])
end
def create
render json: Person.create(params["person"])
end
end