Skip to content

Commit

Permalink
uri for pulses without version
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Pinho committed Apr 2, 2022
1 parent 5934253 commit 9ce42dc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@CrossOrigin(origins = "*", allowedHeaders = "*")
@RestController
@RequestMapping(value = "/beacon/2.0/vdf/unicorn", produces= MediaType.APPLICATION_JSON_VALUE)
@RequestMapping(value = {"/beacon/vdf/unicorn","/beacon/2.0/vdf/unicorn"} ,produces= MediaType.APPLICATION_JSON_VALUE)
public class VdfUnicornResource {

private final VdfUnicornService vdfUnicornService;
Expand All @@ -45,6 +45,11 @@ public ResponseEntity submission(){
}
}

@GetMapping("/rota")
public void teste(){
System.out.println("uma rota");
}

@GetMapping("pulse/{pulseIndex}")
public ResponseEntity byPulseIndex(@PathVariable String pulseIndex) {
try {
Expand Down

0 comments on commit 9ce42dc

Please sign in to comment.