Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uncouple flask from App and Api. Created Abstract classes for theses …
…modules. Fixed the tests
- Loading branch information
Showing
30 changed files
with
426 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
def canonical_base_url(base_path): | ||
""" | ||
Make given "basePath" a canonical base URL which can be prepended to paths starting with "/". | ||
""" | ||
return base_path.rstrip('/') | ||
|
||
from .abstract import AbstractApi | ||
from .flask_api import FlaskApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.