<commit_before>package main

import (
	"github.com/censhin/pokedex-api/moves"
	"github.com/censhin/pokedex-api/pokemon"
	"github.com/gorilla/mux"
)

func InitRoutes() *mux.Router {
	router := mux.NewRouter()

	router.HandleFunc("/pokemon", pokemon.CollectionResource).Methods("GET", "POST")
	router.HandleFunc("/pokemon/{id}", pokemon.MemberResource).Methods("GET", "PUT", "DELETE")
	router.HandleFunc("/moves", moves.CollectionResource).Methods("GET")
	router.HandleFunc("/moves/{id}", moves.MemberResource).Methods("GET")

	return router
}<commit_msg>feat(routes): adding OPTIONS HTTP method on all routes<commit_after>package main

import (
	"github.com/censhin/pokedex-api/moves"
	"github.com/censhin/pokedex-api/pokemon"
	"github.com/gorilla/mux"
)

func InitRoutes() *mux.Router {
	router := mux.NewRouter()

	router.HandleFunc("/pokemon", pokemon.CollectionResource).Methods("GET", "POST", "OPTIONS")
	router.HandleFunc("/pokemon/{id}", pokemon.MemberResource).Methods("GET", "PUT", "DELETE", "OPTIONS")
	router.HandleFunc("/moves", moves.CollectionResource).Methods("GET", "OPTIONS")
	router.HandleFunc("/moves/{id}", moves.MemberResource).Methods("GET", "OPTIONS")

	return router
}
{'fraction_non_alphanumeric': 0.18387909319899245, 'fraction_numerical': 0.0, 'mean_word_length': 6.45, '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': '2669076', 'n_tokens_mistral': 413, 'n_tokens_neox': 403, 'n_words': 59}