fixed api templates route