Skip to content

Commit

Permalink
Add slug to geo_fragment serializer and typescript type
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWalzel committed Sep 18, 2024
1 parent 978999c commit 7a099b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/frontend/types/geo_fragment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface GeoFragment {
id: number;
slug: string;
name: string;
}
1 change: 1 addition & 0 deletions app/serializers/geo_fragment_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class GeoFragmentSerializer < ApplicationSerializer
attributes(
:id,
:slug,
:name,
)
end

0 comments on commit 7a099b2

Please sign in to comment.