Add endpoint for getting all parties

No filters yet
This commit is contained in:
Justin Edmund 2022-02-26 19:29:19 -08:00
parent 6f0dd42cc8
commit 3f979f6d62
2 changed files with 8 additions and 0 deletions

View file

@ -53,6 +53,11 @@ class Api::V1::PartiesController < Api::V1::ApiController
render :characters, status: :ok
end
def all
@parties = Party.all()
render :all, status: :ok
end
private
def random_string

View file

@ -0,0 +1,3 @@
collection @parties
extends 'parties/base'