projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
✅ Don’t run some tests in parallel
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
ReloadingPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/ReloadingPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/ReloadingPage.kt
index
697d173
..
71a7a9b
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/ReloadingPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/ReloadingPage.kt
@@
-1,14
+1,13
@@
package net.pterodactylus.sone.web.pages
package net.pterodactylus.sone.web.pages
-import net.pterodactylus.util.web.Page
-import net.pterodactylus.util.web.Request
-import net.pterodactylus.util.web.Response
-import java.io.File
+import net.pterodactylus.util.web.*
+import java.io.*
+import javax.inject.*
/**
* [Page] implementation that delivers static files from the filesystem.
*/
/**
* [Page] implementation that delivers static files from the filesystem.
*/
-class ReloadingPage<R
: Request>(private val prefix: String, private val path: String, private val mimeType: String)
: Page<R> {
+class ReloadingPage<R
: Request> @Inject constructor(private val prefix: String, private val path: String, private val mimeType: String)
: Page<R> {
override fun isPrefixPage() = true
override fun isPrefixPage() = true