1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
import com.example.demo.entity.Author;
|
||||
import com.example.demo.repository.AuthorRepository;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/authors")
|
||||
public class AuthorController extends BaseController<Author, Long> {
|
||||
|
||||
public AuthorController(AuthorRepository repository) {
|
||||
super(repository);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user