Skip to content

Commit

Permalink
Performance and compatibility tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
garamb1 committed Apr 10, 2024
1 parent 5a3fe84 commit 2e9bced
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.jsoup:jsoup:1.16.2'
implementation 'commons-validator:commons-validator:1.7'
implementation 'commons-validator:commons-validator:1.8.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'net.dankito.readability4j:readability4j:1.0.8'
compileOnly 'org.projectlombok:lombok'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public class RetroSearchController {
@Autowired private UrlValidator urlValidator;
@Autowired private ModernHtmlParser htmlParser;

@GetMapping("/")
public String home() {
return "home";
}

@GetMapping("/search")
public String search(
@RequestParam() Optional<String> query, @RequestParam Optional<String> locale, Model model) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
management.server.port=3000
server.compression.enabled=true
server.error.whitelabel.enabled=false
retrosearch.encoding=UTF-8
retrosearch.html.version=3.2
Expand Down
File renamed without changes.

0 comments on commit 2e9bced

Please sign in to comment.