add function to store eventid and subscriberid

This commit is contained in:
soukainna
2023-02-01 10:47:19 +01:00
parent 56d0914568
commit 62f64747c3
3 changed files with 33 additions and 2 deletions

View File

@@ -330,6 +330,19 @@ func contains(s []*agenda.Subscription, e string) bool {
return false
}
///////////////////////////Delete subscriber///////////////////////////////
func (h *ApplicationHandler) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
eventid := vars["eventid"]
subscribeid := vars["subscribeid"]
fmt.Println(eventid)
fmt.Println(subscribeid)
h.Renderer.AgendaDeleteSubscribeEvent(w, r)
}
////////////////////////////////////////////////////////
// func contains[V string](s []V, e V) bool {
// for _, a := range s {
// if a == e {
@@ -339,5 +352,4 @@ func contains(s []*agenda.Subscription, e string) bool {
// return false
// }
//test
//test