refactor(server): Refactor ejs template route