2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2017-11-14 03:36:14 +04:00
|
|
|
(* Copyright (c) 2014 - 2017. *)
|
2016-09-08 21:13:10 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-12-07 20:43:21 +04:00
|
|
|
type cors = Resto_cohttp.Cors.t = {
|
2017-11-27 09:13:12 +04:00
|
|
|
allowed_headers : string list ;
|
|
|
|
allowed_origins : string list ;
|
|
|
|
}
|
|
|
|
|
2017-12-07 20:43:21 +04:00
|
|
|
include Resto_directory
|
|
|
|
module Directory = Resto_directory.Make(RPC.Data)
|
2017-11-27 09:13:12 +04:00
|
|
|
|
2017-12-07 20:43:21 +04:00
|
|
|
include Resto_cohttp.Server.Make(RPC.Data)(Logging.RPC)
|