Skip to content

Instantly share code, notes, and snippets.

@Wolwer1nE
Created December 11, 2018 08:25
Show Gist options
  • Save Wolwer1nE/b1bd40975540aa357db34c7a83db61f8 to your computer and use it in GitHub Desktop.
Save Wolwer1nE/b1bd40975540aa357db34c7a83db61f8 to your computer and use it in GitHub Desktop.
class VkController < ApplicationController
skip_before_action :verify_authenticity_token, raise: false
def index
a = params['name']
return render json: {'key'=>a.reverse!}
end
def wow
a = params['name']
return render json: {'key'=>a.reverse!}
end
end
#####
root to: 'home#index'
get 'vk', to: 'vk#index'
post 'vk/wow', to: 'vk#wow'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment