新建最新热搜
This commit is contained in:
parent
a45a9a6f2d
commit
1c4c07c82e
7
src/controller/GetNewWebsController.ts
Normal file
7
src/controller/GetNewWebsController.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { Request, Response, NextFunction } from "express";
|
||||
|
||||
export class GetNewWebsController{
|
||||
async all(request: Request, response: Response, next: NextFunction){
|
||||
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
import { GetNewWebsController } from "./controller/GetNewWebsController";
|
||||
import { GetWebsController } from "./controller/GetWebsController";
|
||||
import { HotTopController } from "./controller/HotTopController";
|
||||
|
||||
@ -15,6 +16,11 @@ export const Routes = [
|
||||
route: "/hot/webs",
|
||||
controller: GetWebsController,
|
||||
action: "all"
|
||||
},{
|
||||
method: "get",
|
||||
route: "/hot/new/:name",
|
||||
controller: GetNewWebsController,
|
||||
action: "all"
|
||||
},
|
||||
// {
|
||||
// method: "get",
|
||||
|
Loading…
Reference in New Issue
Block a user