Use before in server.rb