1#!/usr/bin/env python3
 2
 3"""Standard Django file to map from URLs to implementation functions."""
 4
 5from django.urls import path
 6from django.urls import re_path
 7
 8import chart.schemas.views
 9
10app_name = 'schemas'
11
12urlpatterns = [
13    # List of all schemas
14     path('',
15        chart.schemas.views.index,
16        name='index'),
17
18    # Info of single schema
19     re_path(r'(?P<filename>[a-zA-Z0-9_-]+\.html)$',
20        chart.schemas.views.html,
21        name='single'),
22
23    # View raw RNC file
24     re_path(r'(?P<filename>[a-zA-Z0-9_-]+\.(?:(?:rnc)|(?:rng)|(?:xsd)))$',
25        chart.schemas.views.raw,
26        name='raw'),
27]