add function to store eventid and subscriberid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user