Skip to content

Commit 3f25994

Browse files
committed
Change hot posts endpoint
1 parent 534a407 commit 3f25994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class App extends Component {
2424
window.scrollTo(0, 0)
2525
let _this = this
2626
this.setState({ isLoading: true })
27-
axios.get(`${baseURL}/ajax/posts/hot`)
27+
axios.get(`${baseURL}/ajax/posts/hot/min`)
2828
.then(function (result) {
2929
_this.setState({
3030
posts: result.data.posts,
@@ -59,7 +59,7 @@ class App extends Component {
5959
return <li className='post' key={index}>
6060
<PostCard post={post} />
6161
</li>
62-
}).reverse()
62+
})
6363

6464
return (
6565
<div id='app'>

0 commit comments

Comments
 (0)