<commit_before>defmodule HaruElixirApi.Router do
  use HaruElixirApi.Web, :router

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
    plug :put_secure_browser_headers
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", HaruElixirApi do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
  end

    ## Entity
    post "/classes/:classname", WriteController, :create_entity
    put "/classes/:classname/:id", WriteController, :update_entity
    delete "/classes/:classname/:id", WriteController, :delete_entity
    delete "/classes/:classname", WriteController, :delete_class

    ## Config
    post "/config", WriteController, :create_config
    put "/config", WriteController, :update_config
    delete "/config", WriteController, :delete_config

end<commit_msg>Add fetch review crawling route<commit_after>defmodule HaruElixirApi.Router do
  use HaruElixirApi.Web, :router

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
    plug :put_secure_browser_headers
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", HaruElixirApi do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
  end

    ## Entity
    post "/classes/:classname", WriteController, :create_entity
    put "/classes/:classname/:id", WriteController, :update_entity
    delete "/classes/:classname/:id", WriteController, :delete_entity
    delete "/classes/:classname", WriteController, :delete_class

    ## Config
    post "/config", WriteController, :create_config
    put "/config", WriteController, :update_config
    delete "/config", WriteController, :delete_config

    ## Review crawler
    post "/reiview/fetch", WriteController, :fetch_review


end
{'fraction_non_alphanumeric': 0.10375391032325339, 'fraction_numerical': 0.0, 'mean_word_length': 3.9205128205128204, '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': '6089784', 'n_tokens_mistral': 569, 'n_tokens_neox': 567, 'n_words': 155}