Compare commits
3 Commits
883a2825e5
...
69ba0245bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 69ba0245bb | |||
| 597aa1f2e0 | |||
| fbc4c479e8 |
@@ -79,7 +79,7 @@ defmodule ConfientWeb.AssignmentController do
|
||||
conn |> put_flash(:error, "Devoir inexistant") |> redirect(to: "/")
|
||||
|
||||
assignment ->
|
||||
base = Application.get_env(:confient, :upload_dir)
|
||||
base = Application.get_env(:confiant, :upload_dir)
|
||||
|
||||
files =
|
||||
Enum.map(assignment.students_works, fn v -> v.path end)
|
||||
|
||||
@@ -19,7 +19,7 @@ defmodule ConfientWeb.Router do
|
||||
|
||||
plug Plug.Static,
|
||||
at: "/uploads/",
|
||||
from: Application.get_env(:confient, :upload_dir, "/srv/confient/uploads")
|
||||
from: Application.get_env(:confiant, :upload_dir, "/srv/confient/uploads")
|
||||
end
|
||||
|
||||
scope "/", ConfientWeb do
|
||||
|
||||
Reference in New Issue
Block a user