refactor(api): modify api path

This commit is contained in:
Biiddd 2024-10-28 15:00:43 +08:00
parent b5b839fdba
commit da0b0085c9

View File

@ -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)