feat(cpone): migrate medrec endpoint

This commit is contained in:
2026-08-18 15:04:14 +07:00
parent a799022bb5
commit 13bbdc1328
6 changed files with 770 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ func main() {
mux := http.NewServeMux()
mux.Handle("GET /api/cpone/layanan-mapping-harga", apphttp.BearerAuth(cfg.BearerToken, http.HandlerFunc(handler.MappingHarga)))
mux.Handle("POST /api/cpone/patients/medrec", apphttp.BearerAuth(cfg.BearerToken, http.HandlerFunc(handler.StoreMedrec)))
mux.Handle("POST /api/cpone/patients/lab-registration", apphttp.BearerAuth(cfg.BearerToken, http.HandlerFunc(handler.RegisterLab)))
mux.Handle("POST /api/cpone/patients/lab-registration/{regId}/services", apphttp.BearerAuth(cfg.BearerToken, http.HandlerFunc(handler.AddLabServices)))
mux.HandleFunc("GET /healthz", func(w http.ResponseWriter, r *http.Request) {