refactor(api): modify api path
This commit is contained in:
parent
b5b839fdba
commit
da0b0085c9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user