Skip to content

Commit

Permalink
remove all generated controller code
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Dec 4, 2023
1 parent 61d2124 commit a19c13d
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 487 deletions.
43 changes: 0 additions & 43 deletions lib/radiator_web/controllers/api/episode_controller.ex

This file was deleted.

43 changes: 0 additions & 43 deletions lib/radiator_web/controllers/api/podcast_controller.ex

This file was deleted.

43 changes: 0 additions & 43 deletions lib/radiator_web/controllers/api/station_controller.ex

This file was deleted.

24 changes: 0 additions & 24 deletions lib/radiator_web/controllers/fallback_controller.ex

This file was deleted.

7 changes: 2 additions & 5 deletions lib/radiator_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ defmodule RadiatorWeb.Router do
end

# Other scopes may use custom stacks.
scope "/api/v1", RadiatorWeb.Api do
scope "/api", RadiatorWeb.Api do
pipe_through :api

post "/outline", OutlineController, :create
resources "/stations", StationController, except: [:new, :edit]
resources "/podcasts", PodcastController, except: [:new, :edit]
resources "/episodes", EpisodeController, except: [:new, :edit]
post "/v1/outline", OutlineController, :create
end

# Enable LiveDashboard and Swoosh mailbox preview in development
Expand Down
24 changes: 0 additions & 24 deletions lib/radiator_web/views/api/episode_json.ex

This file was deleted.

25 changes: 0 additions & 25 deletions lib/radiator_web/views/api/podcast_json.ex

This file was deleted.

24 changes: 0 additions & 24 deletions lib/radiator_web/views/api/station_json.ex

This file was deleted.

84 changes: 0 additions & 84 deletions test/radiator_web/controllers/api/episode_controller_test.exs

This file was deleted.

Loading

0 comments on commit a19c13d

Please sign in to comment.