Created
March 7, 2018 13:07
-
-
Save zedtux/3107ac6deb1401c7b81763ac16613d2e to your computer and use it in GitHub Desktop.
The most simple Rails API ever
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 UsersController < ApplicationController | |
def index | |
render json: User.all | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment