refactor: adjust depricated use of http-status-codes

This commit is contained in:
Jovan Krunić
2021-10-12 16:48:42 +02:00
parent 04b21a7c5d
commit a2b2cefe8e
21 changed files with 44 additions and 44 deletions

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {OK} from 'http-status-codes';
import {StatusCodes} from 'http-status-codes';
import {SCAppConfiguration} from '../../config/app';
import {SCBackendConfiguration} from '../../config/backend';
import {SCInternalServerErrorResponse} from '../errors/internal-server-error';
@@ -65,7 +65,7 @@ export class SCIndexRoute extends SCAbstractRoute {
this.method = SCRouteHttpVerbs.POST;
this.requestBodyName = 'SCIndexRequest';
this.responseBodyName = 'SCIndexResponse';
this.statusCodeSuccess = OK;
this.statusCodeSuccess = StatusCodes.OK;
this.urlFragment = '/';
}
}