Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announcement endpoint #38

Open
ASpoonPlaysGames opened this issue Sep 3, 2023 · 0 comments
Open

Announcement endpoint #38

ASpoonPlaysGames opened this issue Sep 3, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@ASpoonPlaysGames
Copy link
Contributor

Similar to /client/mainmenupromos, we should have an endpoint for general northstar announcements that show in the multiplayer lobby on clients.

Current NorthstarMods PR:

R2Northstar/NorthstarMods#699

This PR currently attempts to fetch the data from /client/announcement. It currently expects the response body to be JSON in the following format. All of this is easily able to be changed.

{
    "announcement": "Hello, this is an announcement",
    "announcementVersion": "3"
}

When making a new announcement, announcementVersion must be incremented. Not a lot I can do to get around this, since that's how the vanilla game detects new announcements to display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants