Cleanup HTTP APIs, update ports to avoid gap, rustfmt
Moved the HTTP APIs away from the REST endpoint abstraction and to simpler Hyper handlers. Re-established all routes as v1. Changed wallet receiver port to 13415 to avoid a gap in port numbers. Finally, rustfmt seems to have ignored specific files arguments, running on everything.
This commit is contained in:
+6
-7
@@ -12,31 +12,30 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
extern crate grin_core as core;
|
||||
extern crate grin_chain as chain;
|
||||
extern crate grin_core as core;
|
||||
extern crate grin_pool as pool;
|
||||
extern crate grin_store as store;
|
||||
extern crate grin_util as util;
|
||||
|
||||
extern crate hyper;
|
||||
#[macro_use]
|
||||
extern crate slog;
|
||||
extern crate iron;
|
||||
extern crate urlencoded;
|
||||
extern crate mount;
|
||||
#[macro_use]
|
||||
extern crate router;
|
||||
extern crate mount;
|
||||
extern crate serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
extern crate serde_json;
|
||||
#[macro_use]
|
||||
extern crate slog;
|
||||
extern crate urlencoded;
|
||||
|
||||
pub mod client;
|
||||
mod endpoints;
|
||||
mod handlers;
|
||||
mod rest;
|
||||
mod types;
|
||||
|
||||
pub use endpoints::start_rest_apis;
|
||||
pub use handlers::start_rest_apis;
|
||||
pub use types::*;
|
||||
pub use rest::*;
|
||||
|
||||
Reference in New Issue
Block a user