<commit_before>package notificationsettings

import (
	"socialapi/workers/common/handler"
	"socialapi/workers/common/mux"
)

func AddHandlers(m *mux.Mux) {

	m.AddHandler(
		handler.Request{
			Handler:  Create,
			Name:     "notification-settings-create",
			Type:     handler.PostRequest,
			Endpoint: "/channel/{id}/notificationsettings",
		},
	)

	m.AddHandler(
		handler.Request{
			Handler:  Get,
			Name:     "notification-settings-list",
			Type:     handler.GetRequest,
			Endpoint: "/notificationsettings/{id}",
		},
	)

	m.AddHandler(
		handler.Request{
			Handler:  Update,
			Name:     "notification-settings-update",
			Type:     handler.PostRequest,
			Endpoint: "/notificationsettings/{id}",
		},
	)
}<commit_msg>social/handler: Delete endpoint is added for notification setting<commit_after>package notificationsettings

import (
	"socialapi/workers/common/handler"
	"socialapi/workers/common/mux"
)

func AddHandlers(m *mux.Mux) {

	m.AddHandler(
		handler.Request{
			Handler:  Create,
			Name:     "notification-settings-create",
			Type:     handler.PostRequest,
			Endpoint: "/channel/{id}/notificationsettings",
		},
	)

	m.AddHandler(
		handler.Request{
			Handler:  Get,
			Name:     "notification-settings-get",
			Type:     handler.GetRequest,
			Endpoint: "/channel/{id}/notificationsettings",
		},
	)

	m.AddHandler(
		handler.Request{
			Handler:  Update,
			Name:     "notification-settings-update",
			Type:     handler.PostRequest,
			Endpoint: "/notificationsettings/{id}",
		},
	)

	m.AddHandler(
		handler.Request{
			Handler:  Delete,
			Name:     "notification-settings-delete",
			Type:     handler.DeleteRequest,
			Endpoint: "/channel/{id}/notificationsettings",
		},
	)
}
{'fraction_non_alphanumeric': 0.1342673671920607, 'fraction_numerical': 0.0, 'mean_word_length': 3.4404145077720205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7488522', 'n_tokens_mistral': 618, 'n_tokens_neox': 546, 'n_words': 93}