route for silvermobi frontend and backend
This commit is contained in:
parent
41d5f02879
commit
ebad682a65
|
@ -5,19 +5,23 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *ApplicationHandler) SilvermobiBookingList(w http.ResponseWriter, r *http.Request ) {
|
func (h *ApplicationHandler) SilvermobiBookingList(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
h.Renderer.SilvermobiBookingList(w, r)
|
h.Renderer.SilvermobiBookingList(w, r)
|
||||||
fmt.Println("SilverBookingR")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *ApplicationHandler) SilvermobiBookingCreate(w http.ResponseWriter, r *http.Request){
|
func (h *ApplicationHandler) SilvermobiBookingCreate(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Println("SilverBookingC")
|
fmt.Println("SilverBookingC")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *ApplicationHandler) SilvermobiBookingUpdate(w http.ResponseWriter, r *http.Request){
|
func (h *ApplicationHandler) SilvermobiBookingUpdate(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Println("SilverBookingU")
|
fmt.Println("SilverBookingU")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *ApplicationHandler) SilvermobiBookingDelete(w http.ResponseWriter, r *http.Request){
|
func (h *ApplicationHandler) SilvermobiBookingDelete(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Println("SilverBookingD")
|
fmt.Println("SilverBookingD")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
8
main.go
8
main.go
|
@ -138,10 +138,10 @@ func main() {
|
||||||
/*********************** CODE GROUP **************************/
|
/*********************** CODE GROUP **************************/
|
||||||
|
|
||||||
//=================================silvermobi====================================
|
//=================================silvermobi====================================
|
||||||
application.HandleFunc("/app/silvermobi/create", applicationHandler.SilvermobiBookingCreate)
|
application.HandleFunc("/silvermobi/create", applicationHandler.SilvermobiBookingCreate)
|
||||||
application.HandleFunc("/app/silvermobi/", applicationHandler.SilvermobiBookingList)
|
application.HandleFunc("/silvermobi/", applicationHandler.SilvermobiBookingList)
|
||||||
application.HandleFunc("/app/silvermobi/update/{memberid}/{bookingid}", applicationHandler.SilvermobiBookingUpdate)
|
application.HandleFunc("/silvermobi/update/{memberid}/{bookingid}", applicationHandler.SilvermobiBookingUpdate)
|
||||||
application.HandleFunc("/app/silvermobi/delete/{memberid}/{bookingid}", applicationHandler.SilvermobiBookingDelete)
|
application.HandleFunc("/silvermobi/delete/{memberid}/{bookingid}", applicationHandler.SilvermobiBookingDelete)
|
||||||
|
|
||||||
appGroup := application.PathPrefix("/group_module").Subrouter()
|
appGroup := application.PathPrefix("/group_module").Subrouter()
|
||||||
appGroup.HandleFunc("/", applicationHandler.Groups)
|
appGroup.HandleFunc("/", applicationHandler.Groups)
|
||||||
|
|
Loading…
Reference in New Issue