From da0b0085c9e3ce444b9279f6a6f212278a121b33 Mon Sep 17 00:00:00 2001
From: Biiddd <1256773838@qq.com>
Date: Mon, 28 Oct 2024 15:00:43 +0800
Subject: [PATCH] refactor(api): modify api path

---
 routers/router.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/routers/router.go b/routers/router.go
index d964731..d761c4e 100644
--- a/routers/router.go
+++ b/routers/router.go
@@ -15,14 +15,14 @@ func SetupRouter() *gin.Engine {
 	r.GET("/firstUser", handlers.FirstUser)
 
 	// record
-	r.GET("/fetchAllRec", handlers.FetchAllRecords)
+	r.GET("/api/fetchAllRec", handlers.FetchAllRecords)
 	r.POST("/api/insertRec", handlers.InsertRecord)
 
 	// hospital
-	r.GET("/fetchHosList", handlers.FetchHospitalList)  // fetch all hospitals
-	r.POST("/api/addHos", handlers.AddHospital)         // add hospital
-	r.POST("/api/modifyHos", handlers.ModifyHospital)   // modify hospital
-	r.DELETE("/api/deleteHos", handlers.DeleteHospital) // delete hospital
+	r.GET("/api/fetchHosList", handlers.FetchHospitalList) // fetch all hospitals
+	r.POST("/api/addHos", handlers.AddHospital)            // add hospital
+	r.POST("/api/modifyHos", handlers.ModifyHospital)      // modify hospital
+	r.DELETE("/api/deleteHos", handlers.DeleteHospital)    // delete hospital
 
 	// sms
 	r.POST("/api/sendSMS", sms.Request)