mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update publicity endpoints to use campaign naming convention
Rename '/api/publicities' and '/api/publicities/:id' routes to '/api/campaigns' and '/api/campaigns/:id' respectively to avoid adblocker interference. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/gtlJIVB
This commit is contained in:
1 parent
6a6cae3845
commit
0d03e70b10
2 files changed
+3
-3
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 208 KiB |
+3
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user