;; This Source Code Form is subject to the terms of the Mozilla Public ;; License, v. 2.0. If a copy of the MPL was not distributed with this ;; file, You can obtain one at http://mozilla.org/MPL/2.0/. ;; ;; Copyright (c) 2016 Andrey Antukh (ns uxbox.repo "A main interface for access to remote resources." (:refer-clojure :exclude [do]) (:require [uxbox.repo.core :as core] [uxbox.repo.auth] [uxbox.repo.users] [uxbox.repo.projects] [uxbox.repo.pages] [uxbox.repo.colors] [httpurr.status :as status] [beicon.core :as rx])) (defn req "Perform a side effectfull action accesing remote resources." ([type] (core/request type nil)) ([type data] (core/request type data))) (def client-error? status/client-error?) (def server-error? status/server-error?)