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.

24 lines
483 B

class LocationsController < ApplicationController
skip_before_action :verify_authenticity_token
def index
render json: Location.all
end
def show
render json: Location.find(params["id"])
end
def create
render json: Location.create(params["location"])
end
def delete
render json: Location.delete(params["id"])
end
def update
render json: Location.update(params["id"], params["location"])
end
end