%%%-------------------------------------------------------------------
%% @doc graphite_riakts API implementation
%% @end
%%%-------------------------------------------------------------------

-module(graphite_riakts_api).

-export([init/0]).

-spec init() -> ok.
init() ->
    [webmachine_router:add_route(R) 
     || R <- [ {["metrics", "find"],
                graphite_riakts_api_find, []},
               {["render"],
                graphite_riakts_api_render, []}
             ]],
    ok.

-------------------------------------------------------------------
 @doc graphite_riakts API implementation
 @end
-------------------------------------------------------------------

-module(graphite_riakts_api).

-export([init/0]).

-spec init() -> ok.
init() ->
    [webmachine_router:add_route(R) 
     || R <- [ {["metrics", "find"],
                graphite_riakts_api_find, []},
               {["render"],
                graphite_riakts_api_render, []}
             ]],
    ok.
