Move parse_repository_name into decorators

This commit is contained in:
Joseph Schorr 2017-07-20 11:31:22 -04:00
parent a64f268344
commit 98e2ccf74d
10 changed files with 40 additions and 49 deletions

View file

@ -27,10 +27,9 @@ from buildtrigger.triggerutil import TriggerProviderException
from data import model
from data.database import db
from endpoints.api.discovery import swagger_route_data
from endpoints.common import (common_login, render_page_template, param_required,
parse_repository_name)
from endpoints.common import (common_login, render_page_template, param_required)
from endpoints.csrf import csrf_protect, generate_csrf_token, verify_csrf
from endpoints.decorators import anon_protect, anon_allowed, route_show_if
from endpoints.decorators import anon_protect, anon_allowed, route_show_if, parse_repository_name
from health.healthcheck import get_healthchecker
from util.cache import no_cache
from util.headers import parse_basic_auth