Skip to content

Instantly share code, notes, and snippets.

@blogui91
Last active September 10, 2017 21:45
Show Gist options
  • Save blogui91/337982c47e2afab85397d21f15d5a8f1 to your computer and use it in GitHub Desktop.
Save blogui91/337982c47e2afab85397d21f15d5a8f1 to your computer and use it in GitHub Desktop.
We declare here all our routes for the application
import {
BASE_TOKEN,
API_URL,
} from 'config/auth'
export default {
TOKEN_URL: BASE_TOKEN + 'oauth/token',
CURRENT_USER_URL : API_URL + "users/user",
endpoints: {
USERS_URL: API_URL + "users",
POSTS_URL: API_URL + "posts",
// resource_url : API_URL + "resource"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment