add not_implemented handler
This commit is contained in:
parent
f3483594ac
commit
18c4f0b3d5
4 changed files with 38 additions and 3 deletions
|
|
@ -97,8 +97,9 @@ let () =
|
|||
Caqti_miou.Switch.run @@ fun sw ->
|
||||
(* -- *)
|
||||
let fs = Fat.create storage in
|
||||
let env = Global.{ sw; stack; tcp; dns; fs } in
|
||||
let devices = Vifu.Devices.[ Global.db_conn; Global.keys ] in
|
||||
let cfg = Vifu.Config.v Config.Exchange.port in
|
||||
let devices = Vifu.Devices.[ Global.db_conn; Global.keys ] in
|
||||
let handlers = [ Mte_handler.not_implemented_route ] in
|
||||
let env = Global.{ sw; stack; tcp; dns; fs } in
|
||||
Logs.info (fun m -> m "Starting MTE server");
|
||||
Vifu.run ~cfg ~devices tcp routes env
|
||||
Vifu.run ~cfg ~devices ~handlers tcp routes env
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue