Fix warnings in Startup
This commit is contained in:
parent
e9361ece41
commit
dc29ccbcd6
1 changed files with 2 additions and 6 deletions
|
@ -4,7 +4,6 @@ import eu.m724.talkpages.orm.entity.auth.Account;
|
|||
import eu.m724.talkpages.orm.entity.content.Page;
|
||||
import eu.m724.talkpages.orm.entity.content.PageRevision;
|
||||
import eu.m724.talkpages.theme.ThemeService;
|
||||
import io.quarkus.runtime.LaunchMode;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import io.vertx.ext.web.Router;
|
||||
import io.vertx.ext.web.handler.StaticHandler;
|
||||
|
@ -18,15 +17,12 @@ import org.eclipse.microprofile.config.inject.ConfigProperty;
|
|||
@Singleton
|
||||
public class Startup {
|
||||
@Inject
|
||||
LaunchMode launchMode;
|
||||
|
||||
@Inject
|
||||
ThemeService themeService;
|
||||
private ThemeService themeService;
|
||||
|
||||
@ConfigProperty(name = "talkpages.systemUser.name")
|
||||
private String username;
|
||||
|
||||
void installStaticRoute(@Observes StartupEvent startupEvent, Router router) {
|
||||
void installStaticRoute(@Observes StartupEvent ignoredEvent, Router router) {
|
||||
router.route()
|
||||
.path("/static/*")
|
||||
.handler(StaticHandler.create("static/"));
|
||||
|
|
Loading…
Reference in a new issue