add not_implemented handler

This commit is contained in:
swrup 2026-03-30 10:03:08 +02:00 committed by Swrup
parent f3483594ac
commit 18c4f0b3d5
4 changed files with 38 additions and 3 deletions

View file

@ -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