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)
def serve(request, path): if "." not in path: path = "index.html" return _serve(request, path, "/vue")
def serve(request, path): if '.' not in path: path = 'index.html' return _serve(request, path, '/vue')
def serve(request, path): if path == "" or path[-1] == "/": path += 'index.html' return _serve(request, path, settings.BLOG_REPOSITORIES)
def serve(request, path): """ Redirects to frontend files. """ if "." not in path: path = "index.html" return _serve(request, path, "./frontend/dist")
def serveIMG(request, path): """ Redirects to locally hosted images. """ return _serve(request, path, "")