<commit_before>package handlers

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

func (h *Handler) AddHandlers(m *mux.Mux) {

	// channel authentication
	m.AddSessionlessHandler(
		handler.Request{
			Handler:        h.Authenticate,
			Name:           "channel-authenticate",
			Type:           handler.PostRequest,
			Endpoint:       "/channel/{name}/authenticate",
			CollectMetrics: true,
		})

	// channel push message
	m.AddSessionlessHandler(
		handler.Request{
			Handler:        h.Push,
			Name:           "channel-push",
			Type:           handler.PostRequest,
			Endpoint:       "/channel/{name}/push",
			CollectMetrics: true,
		})
}
<commit_msg>gatekeeper: use channel/{id}/fetch as endpoint<commit_after>package handlers

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

func (h *Handler) AddHandlers(m *mux.Mux) {

	// channel authentication
	m.AddSessionlessHandler(
		handler.Request{
			Handler:        h.Authenticate,
			Name:           "channel-authenticate",
			Type:           handler.PostRequest,
			Endpoint:       "/channel/{name}/authenticate",
			CollectMetrics: true,
		})

	// channel push message
	m.AddSessionlessHandler(
		handler.Request{
			Handler:        h.Push,
			Name:           "channel-push",
			Type:           handler.PostRequest,
			Endpoint:       "/channel/{id}/push",
			CollectMetrics: true,
		})
}

{'fraction_non_alphanumeric': 0.12278211497515969, 'fraction_numerical': 0.0, 'mean_word_length': 2.681462140992167, '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': '5392580', 'n_tokens_mistral': 489, 'n_tokens_neox': 430, 'n_words': 82}