Created
December 11, 2018 08:25
-
-
Save Wolwer1nE/b1bd40975540aa357db34c7a83db61f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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