Skip to content

Commit

Permalink
Merge remote-tracking branch 'philo/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Meow committed Dec 20, 2024
2 parents ae86a9d + d5cf9ae commit 75955fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/philomena_web/controllers/api/json/theme_controller.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
defmodule PhilomenaWeb.Api.Json.ThemeController do
use PhilomenaWeb, :controller

alias PhilomenaWeb.SettingView

def index(conn, _params) do
conn
|> put_resp_content_type("application/json")
|> send_resp(200, SettingView.theme_paths_json(conn))
end
end
2 changes: 2 additions & 0 deletions lib/philomena_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ defmodule PhilomenaWeb.Router do
resources "/posts", Forum.Topic.PostController, only: [:show, :index]
end
end

resources "/themes", ThemeController, only: [:index]
end

scope "/", PhilomenaWeb do
Expand Down

0 comments on commit 75955fc

Please sign in to comment.