<commit_before>Rails.application.routes.draw do
  devise_for :user

  namespace :api do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'auth'

      resources :users, only: [:index, :show], param: :nickname
      resources :victories, only: [:index, :show, :create, :destroy] do
        resources :votes, only: [:index, :create, :destroy, :update]
      end
    end
  end
end<commit_msg>Allow user url with username with a dot<commit_after>Rails.application.routes.draw do
  devise_for :user

  namespace :api do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'auth'

      resources :users, only: [:index, :show], param: :nickname, constraints: { :nickname => /[^\/]+/ }
      resources :victories, only: [:index, :show, :create, :destroy] do
        resources :votes, only: [:index, :create, :destroy, :update]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.13068181818181818, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 3.4494949494949494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5153559', 'n_tokens_mistral': 297, 'n_tokens_neox': 292, 'n_words': 88}