This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/settings/endpoints.js

12 lines
363 B
JavaScript
Raw Normal View History

2016-02-06 12:42:19 +00:00
import { Map } from 'immutable';
import UrlAssembler from 'url-assembler';
const URL_BASE = UrlAssembler('https://circleci.com/api/v1');
export default Map({
2016-02-10 22:42:45 +00:00
USER_INFO: URL_BASE.segment('/me'),
2016-02-23 23:12:32 +00:00
ALL_PROJECTS: URL_BASE.segment('/projects'),
RECENT_BUILDS: URL_BASE.segment('/recent-builds'),
PROJECT_RECENTS: URL_BASE.template('/project/:user/:repo')
2016-02-06 12:42:19 +00:00
});