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
596 B
TypeScript
24 lines
596 B
TypeScript
import api from './api';
|
|
|
|
export const advertisementsService = {
|
|
getAds: async () => {
|
|
const { data } = await api.get('/advertisements');
|
|
return data;
|
|
},
|
|
|
|
createAd: async (adData: any) => {
|
|
const { data } = await api.post('/advertisements', adData);
|
|
return data;
|
|
},
|
|
|
|
updateAd: async (id: string, updates: any) => {
|
|
const { data } = await api.patch(`/advertisements/${id}`, updates);
|
|
return data;
|
|
},
|
|
|
|
getActiveAds: async (type?: string) => {
|
|
const { data } = await api.get(`/advertisements/active${type ? `?type=${type}` : ''}`);
|
|
return data;
|
|
},
|
|
};
|