Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | 1 | from flask import Blueprint |
|
|
|||
2 | |||
3 | |||
4 | 1 | blueprint = Blueprint('static', __name__, static_folder="../static") |
|
5 | |||
6 | |||
7 | 1 | @blueprint.route("/stylesheets/<filename>") |
|
8 | def get_css(filename): |
||
9 | return blueprint.send_static_file("stylesheets/{}".format(filename)) |
||
10 | |||
11 | |||
12 | 1 | @blueprint.route("/images/<filename>") |
|
13 | def get_image(filename): |
||
14 | return blueprint.send_static_file("images/{}".format(filename)) |
||
15 |