Merge pull request #478 from R0m1k3/1.1

Update publicity endpoints to use campaign naming convention
This commit is contained in:
LogiFlow authored and GitHub committed 2025-10-01 16:47:32 +02:00
commit 2190eaa8dc
2 files changed
+3 -3

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

+3 -3
View File
@@ -3507,8 +3507,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
}
});
// Publicity routes
app.get('/api/publicities', isAuthenticated, async (req: any, res) => {
// Publicity routes (renamed to campaigns to avoid adblocker issues)
app.get('/api/campaigns', isAuthenticated, async (req: any, res) => {
try {
const user = await storage.getUserWithGroups(req.user.claims ? req.user.claims.sub : req.user.id);
if (!user) {
@@ -3542,7 +3542,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
}
});
app.get('/api/publicities/:id', isAuthenticated, async (req: any, res) => {
app.get('/api/campaigns/:id', isAuthenticated, async (req: any, res) => {
try {
const user = await storage.getUserWithGroups(req.user.claims ? req.user.claims.sub : req.user.id);
if (!user) {