added: api文档

This commit is contained in:
none 2023-03-24 17:44:22 +08:00
parent 7b3d321391
commit 7702d92dc8
2 changed files with 23 additions and 0 deletions

View File

@ -133,6 +133,12 @@
<artifactId>hutool-http</artifactId> <artifactId>hutool-http</artifactId>
<version>5.8.15</version> <version>5.8.15</version>
</dependency> </dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.0.4</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -0,0 +1,17 @@
package xyz.playedu.api.controller.frontend;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.playedu.api.types.JsonResponse;
/**
* @Author 杭州白书科技有限公司
* @create 2023/3/24 17:42
*/
@RestController
public class IndexController {
@GetMapping("/")
public JsonResponse index() {
return JsonResponse.success();
}
}