feat: datasheet upload and auto-retrieve
- store datasheet PDFs on the server - download PDF automatically when given a link
This commit is contained in:
@@ -25,8 +25,9 @@ defmodule ComponentsElixirWeb.Router do
|
||||
get "/login/authenticate", AuthController, :authenticate
|
||||
post "/logout", AuthController, :logout
|
||||
|
||||
# File serving endpoint
|
||||
# File serving endpoints
|
||||
get "/uploads/images/:filename", FileController, :show
|
||||
get "/uploads/datasheets/:filename", FileController, :show_datasheet
|
||||
end
|
||||
|
||||
scope "/", ComponentsElixirWeb do
|
||||
|
||||
Reference in New Issue
Block a user