新建最新热搜

This commit is contained in:
ZtRXR 2023-09-02 22:56:14 +08:00
parent a45a9a6f2d
commit 1c4c07c82e
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import { Request, Response, NextFunction } from "express";
export class GetNewWebsController{
async all(request: Request, response: Response, next: NextFunction){
}
}

View File

@ -1,3 +1,4 @@
import { GetNewWebsController } from "./controller/GetNewWebsController";
import { GetWebsController } from "./controller/GetWebsController"; import { GetWebsController } from "./controller/GetWebsController";
import { HotTopController } from "./controller/HotTopController"; import { HotTopController } from "./controller/HotTopController";
@ -15,6 +16,11 @@ export const Routes = [
route: "/hot/webs", route: "/hot/webs",
controller: GetWebsController, controller: GetWebsController,
action: "all" action: "all"
},{
method: "get",
route: "/hot/new/:name",
controller: GetNewWebsController,
action: "all"
}, },
// { // {
// method: "get", // method: "get",