Begin using async/await.

This commit is contained in:
kialam
2018-11-12 13:24:17 -05:00
parent 06470a0e65
commit f520be71d6
5 changed files with 28 additions and 44 deletions

7
src/endpoints.jsx Normal file
View File

@@ -0,0 +1,7 @@
export const API_ROOT = '/api/';
export const API_LOGIN = `${API_ROOT}login/`;
export const API_LOGOUT = `${API_ROOT}logout/`;
export const API_V2 = `${API_ROOT}v2/`;
export const API_CONFIG = `${API_V2}config/`;
export const API_PROJECTS = `${API_V2}projects/`;
export const API_ORGANIZATIONS = `${API_V2}organizations/`;