This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `mix format` config * Run `mix format` on entire repo * Fix credo error for triple quotes instead of sigils * Upgrade credo to latest version and update credo config * Update Jenkinsfile to do format check
- Loading branch information
Showing
300 changed files
with
8,099 additions
and
6,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
inputs: [ | ||
"mix.exs", | ||
"{config,lib,test}/**/*.{ex,exs}", | ||
"apps/*/{config,lib,test}/**/*.{ex,exs}" | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
defmodule AdminAPI.Endpoint do | ||
use Phoenix.Endpoint, otp_app: :admin_api | ||
|
||
plug Plug.Static, | ||
plug( | ||
Plug.Static, | ||
at: "/public/", | ||
from: Path.join(File.cwd!, "../../public/"), | ||
from: Path.join(File.cwd!(), "../../public/"), | ||
only: ~w(uploads) | ||
) | ||
|
||
plug AdminAPI.AssetNotFoundPlug | ||
plug(AdminAPI.AssetNotFoundPlug) | ||
|
||
# Code reloading can be explicitly enabled under the | ||
# :code_reloader configuration of your endpoint. | ||
if code_reloading? do | ||
plug Phoenix.CodeReloader | ||
plug(Phoenix.CodeReloader) | ||
end | ||
|
||
plug Plug.RequestId | ||
plug Plug.Logger | ||
plug(Plug.RequestId) | ||
plug(Plug.Logger) | ||
|
||
plug Plug.Parsers, | ||
plug( | ||
Plug.Parsers, | ||
parsers: [:urlencoded, :multipart, :json], | ||
pass: ["*/*"], | ||
json_decoder: Poison | ||
) | ||
|
||
plug Plug.MethodOverride | ||
plug Plug.Head | ||
plug CORSPlug | ||
plug(Plug.MethodOverride) | ||
plug(Plug.Head) | ||
plug(CORSPlug) | ||
|
||
plug AdminAPI.Router | ||
plug(AdminAPI.Router) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.