This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Section: Design Block --> | |
<section class="" [ngClass]="colorScheme?.background" class=""> | |
<nav | |
class="flex-no-wrap relative flex w-full items-center justify-between py-2 shadow-md shadow-black/5 dark:shadow-black/10 lg:flex-wrap lg:justify-start lg:py-2.5" | |
data-te-navbar-ref> | |
<div class="flex w-full flex-wrap items-center justify-between px-3"> | |
<button | |
[ngClass]="colorScheme?.text" | |
class="block border-0 bg-transparent px-2 hover:no-underline hover:shadow-none focus:no-underline focus:shadow-none focus:outline-none focus:ring-0 lg:hidden" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GetMapping("/tutorial/{slug}") | |
public ResponseEntity<TutorialDTO> getTutorialBySlug(@PathVariable String slug) { | |
log.info("Slug read: " + slug); | |
Optional<Tutorial> possibleTutorial = Optional.ofNullable(tutorialService.getTutorialBySlug(slug)); | |
if (possibleTutorial.isPresent()) { | |
log.info("Found " + possibleTutorial.get().getTitle()); | |
} else { | |
log.info("Unable to find tutorial by the slug"); |