Hi WK, On Tue, Sep 15, 2015 at 1:05 AM, WK <[email protected]> wrote: > 2015-09-15 0:18 GMT+03:00 Kadir Beyazlı <[email protected]>: > >> content-type is text/html at both cases (with and without serializer), >> not application/json when i curl url. > > It is very strange. If you use my example, save it as script and run > it, you got content type "text/html"? > >> But it works >> And when I use serializer, other routes fail because other routes >> don't return json data. > > You need to run 2 applications: one for html and other for serialized > data (JSON). Sawyer X wrote wonderful article about it in last advent > calendar: > > http://advent.perldancer.org/2014/11 > > It is pretty easy and I assure you, it gives right content types too ;) > Thank you very much! Everything is OK now. > Wbr, > -- > Kõike hääd, > > Gunnar > _______________________________________________ > dancer-users mailing list > [email protected] > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- Kadir Beyazlı Computer Engineer GSM : +90 535 821 50 00 _______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
