From 747d401d6f26a85745c0d1cfec8140daf6ab8e53 Mon Sep 17 00:00:00 2001 From: iAmir Date: Wed, 4 Oct 2023 06:51:37 +0330 Subject: [PATCH] bring our old cache system back, to be used along side new one --- app/transports/api/servers/api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/transports/api/servers/api.go b/app/transports/api/servers/api.go index 22bbc6af1..0afbfcdb3 100644 --- a/app/transports/api/servers/api.go +++ b/app/transports/api/servers/api.go @@ -36,7 +36,9 @@ func Build() fx.Option { s *service, ) { rtr := chi.NewRouter() - r.Mount("/servers", rtr) + r.With( + cacheClient.Middleware, + ).Mount("/servers", rtr) // TODO: Remove this at some point. r.Mount("/server", rtr)