Skip to content

Commit

Permalink
correção de bugs e atualização das resenhas
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0mzzz committed Aug 30, 2024
1 parent 25aa18d commit 9b621ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion app/routes/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const usuariosController = require("../controller/usuariosController");
const resenhaControl = require("../controller/resenhasController");
// UTIL ---------------
const upload = require("../util/upload");
const uploadCapa = upload("../public/img/imagens-servidor/capas-img", 3, ['jpeg', 'jpg', 'png']);
const uploadCapa = upload("./app/public/img/imagens-servidor/capas-img/", 3, ['jpeg', 'jpg', 'png']);
const uploadPerfil = upload("./app/public/img/imagens-servidor/perfil/", 3, ['jpeg', 'jpg', 'png']);


// Página de falha de autenticação ---------
Expand Down
2 changes: 1 addition & 1 deletion app/views/partial/template-home/view-resenha.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if(resenha){ %>
<section class="view__container resenha-view">
<header class="resenha__header">
<img src="./img/imagens-servidor/perfil/<%= resenha.capaResenha %>" alt="imagem de capa da resenha"
<img src="./img/imagens-servidor/capas-img/<%= resenha.capaResenha %>" alt="imagem de capa da resenha"
class="resenha__capa">
<section class="row">
<a href="/profile?idUser=<%= resenha.autor.ID_USUARIO %>" class="userLink link">
Expand Down

0 comments on commit 9b621ad

Please sign in to comment.