|
@@ -2,6 +2,7 @@ package com.caimei.www.controller;
|
|
|
|
|
|
import com.caimei.www.service.generate.GenerateHtml;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.server.ServerWebExchange;
|
|
|
import reactor.core.publisher.Mono;
|
|
@@ -22,7 +23,7 @@ public class GenerateApi {
|
|
|
/**
|
|
|
* 生成静态首页
|
|
|
*/
|
|
|
- @GetMapping("/generate/index")
|
|
|
+ @PostMapping("/generate/index")
|
|
|
public Mono<String> generateStaticHome(ServerWebExchange exchange) {
|
|
|
return generateHtml.generateStaticHome(exchange);
|
|
|
}
|