Skip to content

Commit

Permalink
Merge pull request #63 from VeryGreatFrog/master
Browse files Browse the repository at this point in the history
Add gamedata/spells endpoint
  • Loading branch information
SeanStoves authored Sep 24, 2024
2 parents 3645e19 + 8c3aa0c commit 9362e89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions blueprints/gamedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ def get_limited_use():
return success(compendium.raw_limiteduse)


@gamedata.route("spells", methods=["GET"])
def get_spells():
"""Returns a list of valid entities for use in building a Cast Spell node in the automation builder."""
return success(
{f"{t['name']} ({t['source']})": t["id"] for t in compendium.raw_spells}
)


@gamedata.route("describable", methods=["GET"])
def get_describables():
"""Returns a list of valid entities that are describable (for the purpose of building a Text AbilityReference)."""
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ services:
dockerfile: Dockerfile-dev
container_name: avrae_service
ports:
- "8000:8080"
- "58000:8000"
environment:
- NODE_ENV=development

0 comments on commit 9362e89

Please sign in to comment.