penambahan All case Satu sehat
This commit is contained in:
No files matched your search
@@ -32,6 +32,7 @@ type ModuleHandlers struct {
|
||||
SatuSehatOrganization *satuSehatRefHttp.OrganizationHandler
|
||||
SatuSehatLocation *satuSehatRefHttp.LocationHandler
|
||||
SatuSehatKFA *satuSehatRefHttp.KFAHandler
|
||||
SatuSehatKYC *satuSehatRefHttp.KYCHandler
|
||||
SSAllergyIntolerance *satuSehatUsecaseHttp.AllergyIntoleranceHandler
|
||||
SSCarePlan *satuSehatUsecaseHttp.CarePlanHandler
|
||||
SSClinicalImpression *satuSehatUsecaseHttp.ClinicalImpressionHandler
|
||||
@@ -51,6 +52,7 @@ type ModuleHandlers struct {
|
||||
SSQuestionnaireResponse *satuSehatUsecaseHttp.QuestionnaireResponseHandler
|
||||
SSServiceRequest *satuSehatUsecaseHttp.ServiceRequestHandler
|
||||
SSSpecimen *satuSehatUsecaseHttp.SpecimenHandler
|
||||
SSDicomStudies *satuSehatUsecaseHttp.DicomStudiesHandler
|
||||
}
|
||||
|
||||
// SetupRoutes mendaftarkan seluruh endpoint API secara dinamis berdasarkan
|
||||
@@ -128,7 +130,7 @@ func SetupRoutes(
|
||||
|
||||
// Private routes (Membutuhkan Autentikasi)
|
||||
protected := v1.Group("")
|
||||
protected.Use(middleware.AuthMiddleware(cfg, cacheManager))
|
||||
protected.Use(middleware.AuthMiddleware(cfg, cacheManager)) // Di-comment sementara untuk proses development/testing
|
||||
{
|
||||
if h.Auth != nil {
|
||||
h.Auth.RegisterProtectedRoutes(protected)
|
||||
@@ -168,6 +170,9 @@ func SetupRoutes(
|
||||
if h.SatuSehatKFA != nil {
|
||||
h.SatuSehatKFA.RegisterRoutes(satuSehatGroup)
|
||||
}
|
||||
if h.SatuSehatKYC != nil {
|
||||
h.SatuSehatKYC.RegisterRoutes(satuSehatGroup)
|
||||
}
|
||||
if h.SSAllergyIntolerance != nil {
|
||||
h.SSAllergyIntolerance.RegisterRoutes(satuSehatGroup)
|
||||
}
|
||||
@@ -225,6 +230,9 @@ func SetupRoutes(
|
||||
if h.SSSpecimen != nil {
|
||||
h.SSSpecimen.RegisterRoutes(satuSehatGroup)
|
||||
}
|
||||
if h.SSDicomStudies != nil {
|
||||
h.SSDicomStudies.RegisterRoutes(satuSehatGroup)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user