Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Custom serializer for date returned by server

$
0
0

@therealbenhogan wrote:

Hi,

My back end returns a published field for a post in the form yyyy-mm-dd. For the urls in Ember, I need to pass the year, month and day (with the slug as well) eg

 /posts/2019/02/26/some-slug 

I’ve tried extending the JSONAPISerializer class in order to adjust the payload from the server, but to no avail.

Any help much appreciated.

Many thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles