remove unecessary validation check
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from flask import Blueprint, request, jsonify, abort
|
from flask import Blueprint, request, jsonify, abort
|
||||||
from api.helpers import check_api_key
|
from api.helpers import check_api_key
|
||||||
from api.validators import validate_territory, validate_number, validate_exists
|
from api.validators import validate_territory, validate_number
|
||||||
from api.models.product import Material
|
from api.models.product import Material
|
||||||
from api.models.contract_customer import ContractCustomer
|
from api.models.contract_customer import ContractCustomer
|
||||||
from api.models import market as market_model
|
from api.models import market as market_model
|
||||||
@@ -22,7 +22,6 @@ def get_reseller():
|
|||||||
|
|
||||||
|
|
||||||
@mod.route("/wallpaper", methods=['GET'])
|
@mod.route("/wallpaper", methods=['GET'])
|
||||||
@validate_exists('width', 'height', 'territory')
|
|
||||||
@validate_number('width', 'height')
|
@validate_number('width', 'height')
|
||||||
@validate_territory('territory')
|
@validate_territory('territory')
|
||||||
def wallpaper():
|
def wallpaper():
|
||||||
@@ -46,7 +45,6 @@ def wallpaper():
|
|||||||
|
|
||||||
|
|
||||||
@mod.route('/canvas', methods=['GET'])
|
@mod.route('/canvas', methods=['GET'])
|
||||||
@validate_exists('width', 'height', 'territory')
|
|
||||||
@validate_number('width', 'height')
|
@validate_number('width', 'height')
|
||||||
@validate_territory('territory')
|
@validate_territory('territory')
|
||||||
def canvas():
|
def canvas():
|
||||||
@@ -73,7 +71,6 @@ def canvas():
|
|||||||
|
|
||||||
|
|
||||||
@mod.route('/diy-frame', methods=['GET'])
|
@mod.route('/diy-frame', methods=['GET'])
|
||||||
@validate_exists('width', 'height', 'territory')
|
|
||||||
@validate_number('width', 'height')
|
@validate_number('width', 'height')
|
||||||
@validate_territory('territory')
|
@validate_territory('territory')
|
||||||
def diy_frame():
|
def diy_frame():
|
||||||
|
|||||||
Reference in New Issue
Block a user