add route 'app/silvermobi' + add CRUD functions in handler's folder
This commit is contained in:
parent
dc08de2419
commit
bfc39c22f7
|
@ -0,0 +1,23 @@
|
|||
package application
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
||||
func (h *ApplicationHandler) SilvermobiBookingList(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println("SilverBookingR")
|
||||
}
|
||||
|
||||
func (h *ApplicationHandler) SilvermobiBookingCreate(w http.ResponseWriter, r *http.Request){
|
||||
fmt.Println("SilverBookingC")
|
||||
}
|
||||
|
||||
func (h *ApplicationHandler) SilvermobiBookingUpdate(w http.ResponseWriter, r *http.Request){
|
||||
fmt.Println("SilverBookingU")
|
||||
}
|
||||
|
||||
func (h *ApplicationHandler) SilvermobiBookingDelete(w http.ResponseWriter, r *http.Request){
|
||||
fmt.Println("SilverBookingD")
|
||||
}
|
6
main.go
6
main.go
|
@ -137,6 +137,12 @@ func main() {
|
|||
application.HandleFunc("/support/", applicationHandler.SupportSend)
|
||||
/*********************** CODE GROUP **************************/
|
||||
|
||||
// silvermobi
|
||||
application.HandleFunc("/app/silvermobi/", applicationHandler.SilvermobiBookingCreate)
|
||||
application.HandleFunc("/app/silvermobi/", applicationHandler.SilvermobiBookingList)
|
||||
application.HandleFunc("/app/silvermobi/", applicationHandler.SilvermobiBookingUpdate)
|
||||
application.HandleFunc("/app/silvermobi/", applicationHandler.SilvermobiBookingDelete)
|
||||
|
||||
appGroup := application.PathPrefix("/group_module").Subrouter()
|
||||
appGroup.HandleFunc("/", applicationHandler.Groups)
|
||||
appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule)
|
||||
|
|
Loading…
Reference in New Issue