You do that on the server side. It is already defined, you can just reuse it.