Add rewards to more pages as we have support for them now
All checks were successful
Deploy to Server / deploy (push) Successful in 26s
All checks were successful
Deploy to Server / deploy (push) Successful in 26s
This commit is contained in:
parent
3535d7d2dd
commit
37c1390100
16 changed files with 966 additions and 216 deletions
19
core/urls.py
19
core/urls.py
|
|
@ -17,6 +17,9 @@ from twitch.feeds import GameCampaignDiscordFeed
|
|||
from twitch.feeds import GameCampaignFeed
|
||||
from twitch.feeds import GameDiscordFeed
|
||||
from twitch.feeds import GameFeed
|
||||
from twitch.feeds import GameRewardCampaignAtomFeed
|
||||
from twitch.feeds import GameRewardCampaignDiscordFeed
|
||||
from twitch.feeds import GameRewardCampaignFeed
|
||||
from twitch.feeds import OrganizationAtomFeed
|
||||
from twitch.feeds import OrganizationDiscordFeed
|
||||
from twitch.feeds import OrganizationRSSFeed
|
||||
|
|
@ -93,6 +96,12 @@ urlpatterns: list[URLPattern | URLResolver] = [
|
|||
view=OrganizationRSSFeed(),
|
||||
name="organization_feed",
|
||||
),
|
||||
# /rss/games/<twitch_id>/rewards/ - active reward campaigns for a specific game
|
||||
path(
|
||||
route="rss/games/<str:twitch_id>/rewards/",
|
||||
view=GameRewardCampaignFeed(),
|
||||
name="game_reward_feed",
|
||||
),
|
||||
# /rss/reward-campaigns/ - all active reward campaigns
|
||||
path(
|
||||
route="rss/reward-campaigns/",
|
||||
|
|
@ -120,6 +129,11 @@ urlpatterns: list[URLPattern | URLResolver] = [
|
|||
view=OrganizationAtomFeed(),
|
||||
name="organization_feed_atom",
|
||||
),
|
||||
path(
|
||||
route="atom/games/<str:twitch_id>/rewards/",
|
||||
view=GameRewardCampaignAtomFeed(),
|
||||
name="game_reward_feed_atom",
|
||||
),
|
||||
path(
|
||||
route="atom/reward-campaigns/",
|
||||
view=RewardCampaignAtomFeed(),
|
||||
|
|
@ -146,6 +160,11 @@ urlpatterns: list[URLPattern | URLResolver] = [
|
|||
view=OrganizationDiscordFeed(),
|
||||
name="organization_feed_discord",
|
||||
),
|
||||
path(
|
||||
route="discord/games/<str:twitch_id>/rewards/",
|
||||
view=GameRewardCampaignDiscordFeed(),
|
||||
name="game_reward_feed_discord",
|
||||
),
|
||||
path(
|
||||
route="discord/reward-campaigns/",
|
||||
view=RewardCampaignDiscordFeed(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue