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