mountPage("/reply/${0}", ReplyPastePage.class);
mountPage("/view/${0}", ViewPublicPage.class);
// mountPage("/view/${0}/${1]", ViewPublicPage.class); // map the highlight line URL
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/view/${0}/text", new PasteAsTextResource()));
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/view/${0}/download", new DownloadPasteAsTextResource()));
// mount(new MountMapper("/view/${pasteId}/text", new ResourceReferenceRequestHandler(new PasteAsTextResource())));
mountPage("/private/${0}", ViewPrivatePage.class);
// mountPage("/private/${0}/${1}", ViewPrivatePage.class); // map the highlight line URL
mountPage("/help", HelpPage.class);
mountPage("/login", SignInPage.class);
mountPage("/admin", OverviewPage.class);
ResourceReference pasteAsTextResource = new PasteAsTextResource();
if (pasteAsTextResource.canBeRegistered()) {
getResourceReferenceRegistry().registerResourceReference(pasteAsTextResource);
}
ResourceReference downloadPasteAsTextResource = new DownloadPasteAsTextResource();
if (pasteAsTextResource.canBeRegistered()) {
getResourceReferenceRegistry().registerResourceReference(downloadPasteAsTextResource);
}
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/private/${0}/text", pasteAsTextResource));
getRootRequestMapperAsCompound().add(new PriorityResourceMapper("/private/${0}/download", downloadPasteAsTextResource));