add route 'app/silvermobi' + add CRUD functions in handler's folder

This commit is contained in:
Maxime 2024-04-24 10:22:23 +02:00
parent dc08de2419
commit bfc39c22f7
2 changed files with 29 additions and 0 deletions

View File

@ -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")
}

View File

@ -137,6 +137,12 @@ func main() {
application.HandleFunc("/support/", applicationHandler.SupportSend) application.HandleFunc("/support/", applicationHandler.SupportSend)
/*********************** CODE GROUP **************************/ /*********************** 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 := application.PathPrefix("/group_module").Subrouter()
appGroup.HandleFunc("/", applicationHandler.Groups) appGroup.HandleFunc("/", applicationHandler.Groups)
appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule) appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule)