Added: upload image in beer add form
This commit is contained in:
1
api/.gitignore
vendored
1
api/.gitignore
vendored
@ -3,3 +3,4 @@ dist/
|
||||
package-lock.json
|
||||
.env
|
||||
test-report.html
|
||||
uploads/
|
@ -36,6 +36,7 @@ app.use(morgan("dev"));
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.json());
|
||||
app.use(express.static(path.join(__dirname, "public")));
|
||||
app.use('/public/uploads', express.static(path.join(__dirname, '../uploads')));
|
||||
app.use(cookieParser());
|
||||
|
||||
// Routes
|
||||
|
Reference in New Issue
Block a user