def serve(request, path):  # pragma: no cover
    if "." not in path:
        path = "index.html"
    elif path != "favicon.ico":
        path = "vue-static/" + path

    return _serve(request, path, document_root=settings.FRONT_STATIC_ROOT)
Beispiel #2
0
def serve(request, path):
    if "." not in path:
        path = "index.html"
    return _serve(request, path, "/vue")
Beispiel #3
0
def serve(request, path):
    if '.' not in path:
        path = 'index.html'
    return _serve(request, path, '/vue')
Beispiel #4
0
def serve(request, path):
    if path == "" or path[-1] == "/":
        path += 'index.html'
    return _serve(request, path, settings.BLOG_REPOSITORIES)
Beispiel #5
0
def serve(request, path):
    """ Redirects to frontend files. """

    if "." not in path:
        path = "index.html"
    return _serve(request, path, "./frontend/dist")
Beispiel #6
0
def serveIMG(request, path):
    """ Redirects to locally hosted images. """

    return _serve(request, path, "")