Added get templates API to templates router