1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 17:42:48 +00:00

client - forum page - pagination / threads per page

This commit is contained in:
2018-01-18 22:41:43 -06:00
parent 857df18cbf
commit 0d3a92c28d
11 changed files with 228 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
import axios from '../axios/axios';
import { ThreadModel } from '../model';
const getCategoryThreads = async (category_id: string): Promise<ThreadModel[]> => {
const getCategoryThreads = async (category_id: number): Promise<ThreadModel[]> => {
try {
const res = await axios.get(`/api/thread?category_id=${category_id}`);
return res.data.data;