Standardize URLs
This commit is contained in:
+3
-2
@@ -8,16 +8,17 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/settings")
|
||||
public class AppSettingController {
|
||||
|
||||
private AppSettingService appSettingService;
|
||||
|
||||
@GetMapping("/api/settings")
|
||||
@GetMapping
|
||||
public AppSettings getAppSettings() {
|
||||
return appSettingService.getAppSettings();
|
||||
}
|
||||
|
||||
@PutMapping("/api/settings")
|
||||
@PutMapping
|
||||
public void updateSetting(@RequestBody SettingRequest settingRequest) {
|
||||
appSettingService.updateSetting(settingRequest.getCategory(), settingRequest.getName(), settingRequest.getValue());
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RequestMapping("/v1/author")
|
||||
@RequestMapping("/api/v1/author")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class AuthorController {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
@RequestMapping("/v1/book")
|
||||
@RequestMapping("/api/v1/book")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class BookController {
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.io.IOException;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/epub")
|
||||
@RequestMapping("/api/v1/epub")
|
||||
public class EpubController {
|
||||
|
||||
private final EpubService epubService;
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/v1/library")
|
||||
@RequestMapping("/api/v1/library")
|
||||
@AllArgsConstructor
|
||||
public class LibraryController {
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/v1/metadata")
|
||||
@RequestMapping("/v1/v1/metadata")
|
||||
@AllArgsConstructor
|
||||
public class MetadataController {
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/v1/path")
|
||||
@RequestMapping("/api/v1/path")
|
||||
@AllArgsConstructor
|
||||
public class PathController {
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping(("/v1/shelf"))
|
||||
@RequestMapping(("/api/v1/shelf"))
|
||||
public class ShelfController {
|
||||
|
||||
private final ShelfService shelfService;
|
||||
|
||||
Reference in New Issue
Block a user