|
@@ -2,12 +2,19 @@
|
|
|
* @Author: fuyu
|
|
|
* @Date: 2021-03-23 11:56:31
|
|
|
* @LastEditors: fuyu
|
|
|
- * @LastEditTime: 2021-03-26 16:38:19
|
|
|
- * @FilePath: /202103/code/sql_merge/src/modules/html/controller.js
|
|
|
+ * @LastEditTime: 2021-03-30 23:20:35
|
|
|
+ * @FilePath: /project/sql_merge/src/modules/html/controller.js
|
|
|
*/
|
|
|
import {getHtml} from '../../service/html'
|
|
|
+import {getImageHtml} from '../../service/imagehtml'
|
|
|
|
|
|
export async function html(ctx) {
|
|
|
const html = await getHtml()
|
|
|
ctx.body = html
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+export async function image(ctx) {
|
|
|
+ const html = await getImageHtml()
|
|
|
+ ctx.body = html
|
|
|
+}
|