mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Merge pull request #478 from R0m1k3/1.1
Update publicity endpoints to use campaign naming convention
This commit is contained in:
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