initial commit

This commit is contained in:
2026-05-25 11:52:26 +05:30
commit 0d42ac84e1
53 changed files with 11222 additions and 0 deletions

27
routes/customerroutes.go Normal file
View File

@@ -0,0 +1,27 @@
package routes
import (
"nearle/facade"
"github.com/gofiber/fiber/v2"
)
func RegisterCustomerRoutes(api fiber.Router, f *facade.Facade) {
customer := api.Group("/v1/mob/customers")
customer.Get("/getbyid", f.CustomerController.GetCustomer)
customer.Put("/update", f.CustomerController.UpdateCustomer)
customer.Get("/getcustomerlocation", f.CustomerController.GetCustomerLocations)
customer.Post("/createlocations", f.CustomerController.CreateCustomerLocation)
customer.Post("/createcustomerrequest", f.CustomerController.CreateCustomerRequest)
customer.Get("/getcustomerrequests", f.CustomerController.GetCustomerRequests)
customer.Get("/gettenantcustomers", f.CustomerController.GetTenantCustomers)
customer.Get("/search", f.CustomerController.SearchCustomer)
customer.Post("/login", f.CustomerController.CustomerLogin)
customer.Post("/create", f.CustomerController.CreateCustomer)
customer = api.Group("/v1/web/customers")
customer.Get("/gettenantcustomers", f.CustomerController.GetTenantCustomers)
}