Skip to content

Commit

Permalink
Simpler FaviconController
Browse files Browse the repository at this point in the history
  • Loading branch information
afranken committed May 30, 2024
1 parent 56972ed commit 31861db
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2023 Adobe.
* Copyright 2017-2024 Adobe.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,20 +16,18 @@

package com.adobe.testing.s3mock;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
* Spring Boot 2.2+ does not include the default favicon.ico anymore.
* This is needed to check if the S3 Mock is up (at least in our examples and some use-cases)
*/
@Controller
@RestController
@RequestMapping
class FaviconController {
@GetMapping("favicon.ico")
@ResponseBody
void favicon() {
// Method is intentionally empty.
}
Expand Down

0 comments on commit 31861db

Please sign in to comment.