Conditions | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
27 | @blueprint.route('/<path:url_path>') |
||
28 | def view(url_path): |
||
29 | """Show the current version of the snippet that is mounted for the |
||
30 | current site at the given URL path. |
||
31 | """ |
||
32 | url_path = '/' + url_path |
||
33 | |||
34 | version = mountpoint_service.find_current_snippet_version_for_url_path( |
||
35 | g.site_id, url_path |
||
36 | ) |
||
37 | |||
38 | if version is None: |
||
39 | abort(404) |
||
40 | |||
42 |