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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user