All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.shared.projectfolder.infrastructure.primary.ProjectFoldersResource Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.shared.projectfolder.infrastructure.primary;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.jhipster.lite.shared.projectfolder.domain.ProjectFolder;

@RestController
@RequestMapping("/api/project-folders")
class ProjectFoldersResource {

  private final ProjectFolder jHipsterProjectFolderFactory;

  ProjectFoldersResource(ProjectFolder jHipsterProjectFolderFactory) {
    this.jHipsterProjectFolderFactory = jHipsterProjectFolderFactory;
  }

  @GetMapping
  public String getAvailableFolderName() {
    return jHipsterProjectFolderFactory.generatePath();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy