33 lines
1 KiB
Go
33 lines
1 KiB
Go
package rmo
|
|
|
|
import (
|
|
"github.com/Gleipnir-Technology/nidus-sync/html"
|
|
"github.com/go-chi/chi/v5"
|
|
)
|
|
|
|
func Router() chi.Router {
|
|
r := chi.NewRouter()
|
|
r.Get("/", getRoot)
|
|
r.Get("/privacy", getPrivacy)
|
|
r.Get("/robots.txt", getRobots)
|
|
r.Get("/email", getEmailByCode)
|
|
r.Get("/image/{uuid}", getImageByUUID)
|
|
r.Route("/mock", addMockRoutes)
|
|
r.Get("/nuisance", getNuisance)
|
|
r.Post("/nuisance-submit", postNuisance)
|
|
r.Get("/nuisance-submit-complete", getNuisanceSubmitComplete)
|
|
r.Get("/pool", getPool)
|
|
r.Post("/pool-submit", postPool)
|
|
r.Get("/pool-submit-complete", getPoolSubmitComplete)
|
|
r.Get("/quick", getQuick)
|
|
r.Post("/quick-submit", postQuick)
|
|
r.Get("/quick-submit-complete", getQuickSubmitComplete)
|
|
r.Post("/register-notifications", postRegisterNotifications)
|
|
r.Get("/register-notifications-complete", getRegisterNotificationsComplete)
|
|
r.Get("/search", getSearch)
|
|
r.Get("/status", getStatus)
|
|
r.Get("/status/{report_id}", getStatusByID)
|
|
r.Get("/terms-of-service", getTerms)
|
|
html.AddStaticRoute(r, "/static")
|
|
return r
|
|
}
|