LoadError: UndefVarError: @params not defined

In a legacy code am working on @params(:JSON_PAYLOAD) is used to get some of the request payload. I have updated Julia to version 1.7 and and Genie version is 4.5.0. Why is @params not defined error coming? Is this a version specific issue?