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

11 lines
363 B
JavaScript

import { Map } from 'immutable';
import UrlAssembler from 'url-assembler';
const URL_BASE = UrlAssembler('https://circleci.com/api/v1');
export default Map({
USER_INFO: URL_BASE.segment('/me'),
ALL_PROJECTS: URL_BASE.segment('/projects'),
RECENT_BUILDS: URL_BASE.segment('/recent-builds'),
PROJECT_RECENTS: URL_BASE.template('/project/:user/:repo')
});