Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
24 lines
628 B
TypeScript
24 lines
628 B
TypeScript
import api from './api';
|
|
|
|
export const moderationService = {
|
|
getQueue: async (action: string = 'review') => {
|
|
const { data } = await api.get(`/moderation/queue?action=${action}`);
|
|
return data;
|
|
},
|
|
|
|
getStats: async () => {
|
|
const { data } = await api.get('/moderation/stats');
|
|
return data;
|
|
},
|
|
|
|
reviewContent: async (id: string, decision: 'approve' | 'reject') => {
|
|
const { data } = await api.post(`/moderation/review/${id}`, { decision });
|
|
return data;
|
|
},
|
|
|
|
checkUser: async (userId: string) => {
|
|
const { data } = await api.get(`/moderation/check-user/${userId}`);
|
|
return data;
|
|
},
|
|
};
|