Skip to content
Snippets Groups Projects
Commit 60d9643e authored by Richard Githuba's avatar Richard Githuba
Browse files

fixed having the post be in reverse order

parent e9251e12
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ spring.thymeleaf.layout-dialect.enabled=true
spring.datasource.url=jdbc:mariadb://localhost:3306/polish_community
spring.datasource.username=root
spring.datasource.password=comsc
spring.datasource.password=
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
......
......@@ -26,7 +26,6 @@ async function fetchPosts() {
const response = await fetch(API_BASE_URL);
if (!response.ok) throw new Error('Failed to fetch posts');
posts = await response.json();
posts.reverse();
renderPosts();
} catch (error) {
console.error('Error fetching posts:', error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment