proper api route decorator