add auth for sbar and adime

This commit is contained in:
dpurbosakti
2025-09-09 13:57:47 +07:00
parent 9cd19f4783
commit 62c41be875
@@ -129,8 +129,8 @@ func SetRoutes() http.Handler {
})
hc.RegCrud(r, "/v1/soapi", auth.GuardMW, soapi.O)
hc.RegCrud(r, "/v1/adime", adime.O)
hc.RegCrud(r, "/v1/sbar", sbar.O)
hc.RegCrud(r, "/v1/adime", auth.GuardMW, adime.O)
hc.RegCrud(r, "/v1/sbar", auth.GuardMW, sbar.O)
hc.RegCrud(r, "/v1/person", person.O)
hc.RegCrud(r, "/v1/person-address", personaddress.O)
hc.RegCrud(r, "/v1/person-contact", personcontact.O)