Skip to content

Instantly share code, notes, and snippets.

@picsoung
Created February 26, 2015 11:42
Show Gist options
  • Save picsoung/92ab865bba134c69bf49 to your computer and use it in GitHub Desktop.
Save picsoung/92ab865bba134c69bf49 to your computer and use it in GitHub Desktop.
Correction workshop le wagon
resource :words do
get '/mots/:word' do
{word: params[:word], sentiment:"unknown"}.to_json
end
post ':word' do
{word: params[:word], result: "thinking"}.to_json
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment