X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterfaceModule.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterfaceModule.kt;h=dd5e9f66d7c1e06ec4b5d451c9b8649ad2de40bf;hp=16f6e86f1aee7a76851e821e6ef095a506beb66b;hb=c12bed3557f3f1d80c9694a778fcaf3429b04073;hpb=8f6aa25c5a6bfc76430800027533bfe5e2ee336c diff --git a/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt b/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt index 16f6e86..dd5e9f6 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/WebInterfaceModule.kt @@ -12,6 +12,7 @@ import net.pterodactylus.sone.main.* import net.pterodactylus.sone.template.* import net.pterodactylus.sone.text.* import net.pterodactylus.util.template.* +import javax.inject.* import javax.inject.Singleton class WebInterfaceModule : AbstractModule() { @@ -120,4 +121,8 @@ class WebInterfaceModule : AbstractModule() { fun getImageLinkFilter(core: Core) = ImageLinkFilter(core) + @Provides + @Named("toadletPathPrefix") + fun getPathPrefix(): String = "/Sone/" + }