Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Rails.application.routes.draw do
  2. constraints subdomain: 'api' do
  3. namespace :api, path: '/' do
  4. resources :apps, :only => :show
  5. end
  6. end
  7.  
  8. class AppsController < ApplicationController
  9. def show
  10. puts "this works"
  11. respond_to do |format|
  12. format.json { render json: @user }
  13. end
  14. def apps
  15. puts "my app"
  16. end
  17.  
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement