Add coupon.server:end and coupon.server:reload
Move routing definition in a function