<commit_before>Rails.application.routes.draw do

  #campaign
  get '/campaign/new', :to => "campaign#new"
  post '/campaign/new', :to => "campaign#create"
  get '/campaign/details/:campaign_id', :to => "campaign#details"
  post '/campaign/edit/:campaign_id', :to => "campaign#edit"
  get '/campaign/:campaign_id', :to => "campaign#index"
  get '/campaign/donate/:campaign_id', :to => "campaign#donate"
  post '/campaign/donate/:campaign_id', :to => "campaign#make_donation"
  get '/campaign/donation_success/:campaign_id/:payment_id', :to => "campaign#donation_success"
  match '/campaign/ipn/:campaign_id', :to => "campaign#ipn", via: [:get, :post]

  #user
  match '/login', :to => "user#login", :via => [:get,:post]
  get '/logout', :to => "user#logout"
  get '/user/register', :to => "user#register"
  post '/user/register', :to => "user#create"
  get '/user/view/:user_id', :to => "user#view"
  get '/user/verify/:user_id', :to => "user#verify"
  post '/user/resend_confirmation_email/:user_id', :to => "user#resend_confirmation_email"
  match '/user/ipn/:user_id', :to => "user#ipn", via: [:get, :post]

  #admin
  get '/admin', :to => "admin#index"
  get '/admin/campaigns', :to => "admin#campaigns"
  get '/admin/campaign/:campaign_id', :to => "admin#campaign"
  post '/admin/delete_campaign/:campaign_id', :to => "admin#delete_campaign"
  post '/admin/undelete_campaign/:campaign_id', :to => "admin#undelete_campaign"
  post '/admin/feature_campaign/:campaign_id', :to => "admin#feature_campaign"
  post '/admin/unfeature_campaign/:campaign_id', :to => "admin#unfeature_campaign"
  get '/admin/users', :to => "admin#users"
  get '/admin/user/:user_id', :to => "admin#user"

  #welcome
  get 'welcome/index'
  get 'welcome/about'
  get 'welcome/terms'

  #api, can definitely change later
  #namespace :api, path: '/', constraints: { subdomain: 'api' } do
  #  resources :campaigns
  #end

  get '/mfa', :to => "mfa#index"
  get '/mfa/register/:user_id', :to => "mfa#register"
  post '/mfa/register/:user_id', :to => "mfa#create"
  get '/mfa/verify/:user_id', :to => "mfa#challenge"
  post '/mfa/verify/:user_id', :to => "mfa#verify"
  #get '/mfa/verify/:user_id', :to => "mfa#challenge"
  #post '/mfa/challenge/:user_id', :to => "mfa#verify"
  post '/mfa/challenge/:user_id', :to => "mfa#verify"
  #post '/mfa/verify/:user_id', :to => "mfa#verify"
  #get '/mfa/verify/:user_id', :to => "mfa#verify"



  #get '/mfa/register/:user_id', :to => "mfa#new"
  #post '/mfa/register/:user_id', :to => "mfa#create"
  #get '/mfa/new/:user_id', :to => "mfa#new"
  #post '/mfa/new/:user_id', :to => "mfa#create"
  #post '/mfa/register/:user_id', :to => "mfa#create

  #get '/mfa/verify/:user_id', :to => "mfa#verify"
  #get '/mfa/confirm/:user_id', :to => "mfa#confirm"


  get '/mfa/about'
  get '/mfa/trust'
  get '/mfa/confirm/:user_id', :to => "mfa#confirm"
  post '/mfa/confirm/:user_id', :to => "user#view"
  get '/mfa/google_auth_challenge/:user_id', :to => "mfa#google_auth_challenge"
  post '/mfa/google_auth_challenge/:user_id', :to => "mfa#verify"
 namespace :api do
     resources :campaigns<commit_msg>removed irrelevant stuff from api branch<commit_after>Rails.application.routes.draw do

  #campaign
  get '/campaign/new', :to => "campaign#new"
  post '/campaign/new', :to => "campaign#create"
  get '/campaign/details/:campaign_id', :to => "campaign#details"
  post '/campaign/edit/:campaign_id', :to => "campaign#edit"
  get '/campaign/:campaign_id', :to => "campaign#index"
  get '/campaign/donate/:campaign_id', :to => "campaign#donate"
  post '/campaign/donate/:campaign_id', :to => "campaign#make_donation"
  get '/campaign/donation_success/:campaign_id/:payment_id', :to => "campaign#donation_success"
  match '/campaign/ipn/:campaign_id', :to => "campaign#ipn", via: [:get, :post]

  #user
  match '/login', :to => "user#login", :via => [:get,:post]
  get '/logout', :to => "user#logout"
  get '/user/register', :to => "user#register"
  post '/user/register', :to => "user#create"
  get '/user/view/:user_id', :to => "user#view"
  get '/user/verify/:user_id', :to => "user#verify"
  post '/user/resend_confirmation_email/:user_id', :to => "user#resend_confirmation_email"
  match '/user/ipn/:user_id', :to => "user#ipn", via: [:get, :post]

  #admin
  get '/admin', :to => "admin#index"
  get '/admin/campaigns', :to => "admin#campaigns"
  get '/admin/campaign/:campaign_id', :to => "admin#campaign"
  post '/admin/delete_campaign/:campaign_id', :to => "admin#delete_campaign"
  post '/admin/undelete_campaign/:campaign_id', :to => "admin#undelete_campaign"
  post '/admin/feature_campaign/:campaign_id', :to => "admin#feature_campaign"
  post '/admin/unfeature_campaign/:campaign_id', :to => "admin#unfeature_campaign"
  get '/admin/users', :to => "admin#users"
  get '/admin/user/:user_id', :to => "admin#user"

  #welcome
  get 'welcome/index'
  get 'welcome/about'
  get 'welcome/terms'
  
 namespace :api do
     resources :campaigns
{'fraction_non_alphanumeric': 0.20794675272287214, 'fraction_numerical': 0.0, 'mean_word_length': 4.6869266055045875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 78, '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': '2591168', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1868, 'n_words': 365}