mirror of https://github.com/halo-dev/halo
🍎 add maven-javadoc-plugin
parent
122b3a0498
commit
000f7ed465
5
pom.xml
5
pom.xml
|
@ -238,6 +238,11 @@
|
|||
<fork>true</fork>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
|
|
@ -32,7 +32,7 @@ public class ApiPostController {
|
|||
* @param page 页码
|
||||
* @return JsonResult
|
||||
*/
|
||||
@GetMapping(value = "/posts/{page}")
|
||||
@GetMapping(value = "/page/{page}")
|
||||
public JsonResult posts(@PathVariable(value = "page") Integer page){
|
||||
Sort sort = new Sort(Sort.Direction.DESC, "postDate");
|
||||
Integer size = 10;
|
||||
|
@ -53,7 +53,7 @@ public class ApiPostController {
|
|||
* @param postUrl 文章路径
|
||||
* @return JsonResult
|
||||
*/
|
||||
@GetMapping(value = "/posts/{postUrl}")
|
||||
@GetMapping(value = "/{postUrl}")
|
||||
public JsonResult posts(@PathVariable(value = "postUrl") String postUrl){
|
||||
Post post = postService.findByPostUrl(postUrl,HaloConst.POST_TYPE_POST);
|
||||
if(null!=post){
|
||||
|
|
Loading…
Reference in New Issue