Skip to content

Commit

Permalink
Remove useless caching
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentTreguier committed Sep 15, 2024
1 parent 0ae604c commit b4aa23f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/app/fyreplace/api/endpoints/DevEndpoint.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package app.fyreplace.api.endpoints;

import app.fyreplace.api.cache.DuplicateRequestKeyGenerator;
import app.fyreplace.api.data.User;
import app.fyreplace.api.services.JwtService;
import io.quarkus.arc.properties.IfBuildProperty;
import io.quarkus.cache.CacheResult;
import io.quarkus.elytron.security.common.BcryptUtil;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
Expand All @@ -20,7 +18,6 @@ public final class DevEndpoint {

@GET
@Path("users/{username}/token")
@CacheResult(cacheName = "requests", keyGenerator = DuplicateRequestKeyGenerator.class)
public String getUserToken(@PathParam("username") final String username) {
final var user = User.findByUsername(username);

Expand Down

0 comments on commit b4aa23f

Please sign in to comment.