aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorTyler Smith <[email protected]>2020-09-04 16:15:23 -0700
committerTyler Smith <[email protected]>2020-09-04 16:15:23 -0700
commit13718f05008268dd887257d87a4116b37afb1eeb (patch)
treec0bc18693cc0aa3ca551053697f3b521a748140c /plugin/evm/vm.go
parent891eb16f79fbc8552ede10d786bf70927f78367a (diff)
TWEAK: Change /ava API to /avax.
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index e1fdc33..b0073da 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -519,9 +519,9 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler {
handler.RegisterName("admin", &admin.Performance{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
- "/ava": newHandler("ava", &AvaAPI{vm}),
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
+ "/rpc": {LockOptions: commonEng.NoLock, Handler: handler},
+ "/avax": newHandler("avax", &AvaxAPI{vm}),
+ "/ws": {LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}
@@ -530,8 +530,8 @@ func (vm *VM) CreateStaticHandlers() map[string]*commonEng.HTTPHandler {
handler := rpc.NewServer()
handler.RegisterName("static", &StaticService{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
+ "/rpc": {LockOptions: commonEng.NoLock, Handler: handler},
+ "/ws": {LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}