Add Fallback Handling for DirectoryResource
parent
6c5b2f7534
commit
64d75b8285
|
@ -142,7 +142,15 @@ namespace ln.http.resources
|
||||||
if (DefaultResource != null)
|
if (DefaultResource != null)
|
||||||
return httpRequest.Redirect(String.Join("/", DefaultResource.Path));
|
return httpRequest.Redirect(String.Join("/", DefaultResource.Path));
|
||||||
|
|
||||||
throw new NotImplementedException();
|
Resource fallback = GetFallBackResource();
|
||||||
|
if (fallback != null)
|
||||||
|
{
|
||||||
|
return fallback.GetResponse(httpRequest);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Template FindTemplate(string templatePath)
|
public Template FindTemplate(string templatePath)
|
||||||
|
|
Loading…
Reference in New Issue