refactor(api): modify api path
This commit is contained in:
		| @ -15,14 +15,14 @@ func SetupRouter() *gin.Engine { | |||||||
| 	r.GET("/firstUser", handlers.FirstUser) | 	r.GET("/firstUser", handlers.FirstUser) | ||||||
|  |  | ||||||
| 	// record | 	// record | ||||||
| 	r.GET("/fetchAllRec", handlers.FetchAllRecords) | 	r.GET("/api/fetchAllRec", handlers.FetchAllRecords) | ||||||
| 	r.POST("/api/insertRec", handlers.InsertRecord) | 	r.POST("/api/insertRec", handlers.InsertRecord) | ||||||
|  |  | ||||||
| 	// hospital | 	// hospital | ||||||
| 	r.GET("/fetchHosList", handlers.FetchHospitalList)  // fetch all hospitals | 	r.GET("/api/fetchHosList", handlers.FetchHospitalList) // fetch all hospitals | ||||||
| 	r.POST("/api/addHos", handlers.AddHospital)         // add hospital | 	r.POST("/api/addHos", handlers.AddHospital)            // add hospital | ||||||
| 	r.POST("/api/modifyHos", handlers.ModifyHospital)   // modify hospital | 	r.POST("/api/modifyHos", handlers.ModifyHospital)      // modify hospital | ||||||
| 	r.DELETE("/api/deleteHos", handlers.DeleteHospital) // delete hospital | 	r.DELETE("/api/deleteHos", handlers.DeleteHospital)    // delete hospital | ||||||
|  |  | ||||||
| 	// sms | 	// sms | ||||||
| 	r.POST("/api/sendSMS", sms.Request) | 	r.POST("/api/sendSMS", sms.Request) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user