2026-01-29 23:55:41 +00:00
|
|
|
package rmo
|
2026-01-09 19:43:19 +00:00
|
|
|
|
|
|
|
|
import (
|
2026-04-07 14:56:31 +00:00
|
|
|
//"github.com/Gleipnir-Technology/nidus-sync/html"
|
2026-03-21 05:38:42 +00:00
|
|
|
"github.com/Gleipnir-Technology/nidus-sync/static"
|
2026-04-01 16:19:11 +00:00
|
|
|
"github.com/gorilla/mux"
|
2026-01-09 19:43:19 +00:00
|
|
|
)
|
|
|
|
|
|
2026-04-01 16:19:11 +00:00
|
|
|
func Router(r *mux.Router) {
|
2026-04-07 14:56:31 +00:00
|
|
|
/*
|
|
|
|
|
r.HandleFunc("/submit-complete", getSubmitComplete).Methods("GET")
|
2026-02-01 02:57:58 +00:00
|
|
|
|
2026-04-07 14:56:31 +00:00
|
|
|
r.HandleFunc("/district", getDistrictList).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}", getRootDistrict).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance", getDistrictCompliance).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/address", getDistrictComplianceAddress).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/complete", getDistrictComplianceComplete).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/concern", getDistrictComplianceConcern).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/contact", getDistrictComplianceContact).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/evidence", getDistrictComplianceEvidence).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/permission", getDistrictCompliancePermission).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/process", getDistrictComplianceProcess).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/compliance/submit", getDistrictComplianceSubmit).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/nuisance", getNuisanceDistrict).Methods("GET")
|
|
|
|
|
//r.HandleFunc("/district/{slug}/nuisance-submit-complete", renderMock(mockNuisanceSubmitCompleteT)).Methods("GET")
|
|
|
|
|
//r.HandleFunc("/district/{slug}/status", renderMock(mockStatusT)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/district/{slug}/water", getWaterDistrict).Methods("GET")
|
|
|
|
|
//r.HandleFunc("/district/{slug}/water", postWaterDistrict).Methods("POST")
|
|
|
|
|
r.HandleFunc("/error", getError).Methods("GET")
|
2026-01-30 20:41:02 +00:00
|
|
|
|
2026-04-07 14:56:31 +00:00
|
|
|
r.HandleFunc("/privacy", getPrivacy).Methods("GET")
|
|
|
|
|
r.HandleFunc("/robots.txt", getRobots).Methods("GET")
|
|
|
|
|
r.HandleFunc("/email/render/{code}", getEmailByCode).Methods("GET")
|
|
|
|
|
r.HandleFunc("/email/confirm", getEmailConfirm).Methods("GET")
|
|
|
|
|
r.HandleFunc("/email/confirm", postEmailConfirm).Methods("POST")
|
|
|
|
|
r.HandleFunc("/email/confirm/complete", getEmailConfirmComplete).Methods("GET")
|
|
|
|
|
r.HandleFunc("/email/unsubscribe", getEmailUnsubscribe).Methods("GET")
|
|
|
|
|
r.HandleFunc("/email/unsubscribe/report/{report_id}", getEmailReportUnsubscribe).Methods("GET")
|
|
|
|
|
r.HandleFunc("/image/{uuid}", getImageByUUID).Methods("GET")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}", html.MakeGet(getMailer)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}/confirm", html.MakePost(postMailerConfirm)).Methods("POST")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}/contribute", html.MakeGet(getMailerContribute)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}/evidence", html.MakeGet(getMailerEvidence)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}/schedule", html.MakeGet(getMailerSchedule)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/mailer/{public_id}/update", html.MakeGet(getMailerUpdate)).Methods("GET")
|
|
|
|
|
r.HandleFunc("/register-notifications", postRegisterNotifications).Methods("POST")
|
|
|
|
|
r.HandleFunc("/register-notifications-complete", getRegisterNotificationsComplete).Methods("GET")
|
|
|
|
|
r.HandleFunc("/report/suggest", getReportSuggestion).Methods("GET")
|
|
|
|
|
r.HandleFunc("/scss/*", getScssDebug).Methods("GET")
|
|
|
|
|
r.HandleFunc("/status", getStatus).Methods("GET")
|
|
|
|
|
r.HandleFunc("/status/{report_id}", getStatusByID).Methods("GET")
|
|
|
|
|
r.HandleFunc("/terms-of-service", getTerms).Methods("GET")
|
|
|
|
|
*/
|
2026-03-21 05:38:42 +00:00
|
|
|
static.AddStaticRoute(r, "/static")
|
2026-04-08 17:49:32 +00:00
|
|
|
r.PathPrefix("/").Handler(static.SinglePageApp("static/gen/rmo")).Methods("GET")
|
2026-01-09 19:43:19 +00:00
|
|
|
}
|