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