Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Rails.application.routes.draw do
- constraints subdomain: 'api' do
- namespace :api, path: '/' do
- resources :apps, :only => :show
- end
- end
- class AppsController < ApplicationController
- def show
- puts "this works"
- respond_to do |format|
- format.json { render json: @user }
- end
- def apps
- puts "my app"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement