This commit is contained in:
2
app.js
2
app.js
@@ -6,6 +6,7 @@ import tagsRouter from "./router/tags.js";
|
||||
import infoRouter from "./router/info.js";
|
||||
import searchRouter from "./router/search.js";
|
||||
import homeRouter from "./router/home.js";
|
||||
import hotRouter from "./router/hot.js";
|
||||
import http from "http";
|
||||
|
||||
const app = express()
|
||||
@@ -31,6 +32,7 @@ app.use('/v1/api/tag', tagsRouter);
|
||||
app.use('/v1/api/info', infoRouter);
|
||||
app.use('/v1/api/search', searchRouter);
|
||||
app.use('/v1/api/home', homeRouter);
|
||||
app.use('/v1/api/hot', hotRouter);
|
||||
|
||||
http.createServer(app).listen(config.port, "::",() => {
|
||||
console.log(`
|
||||
|
||||
Reference in New Issue
Block a user