some changes to auth and group api

This commit is contained in:
2019-04-15 14:14:42 +02:00
parent cbc269edf2
commit 3ecc8e0955
6 changed files with 158 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from flask import Blueprint
from flask import Blueprint, abort
from flask_restplus import Api, Namespace
api_authorizations = {
@@ -40,3 +40,13 @@ from .example_api import *
from .auth_api import *
from .user_api import *
from .group_api import *
@api_bp.route('/<path:path>')
def catch_all_api(path):
"""
Default 404 response for undefined paths in API.
:param path:
:return:
"""
abort(404)