mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
リファクタ
This commit is contained in:
parent
a6ef910e56
commit
2f125fdec5
|
@ -1,11 +1,10 @@
|
||||||
import express from "express";
|
import express from "express";
|
||||||
import Logger from "@src/logger";
|
import Logger from "@src/logger";
|
||||||
import debugRouter from "@src/routers/debugRouter";
|
import debugRouter from "@src/routers/debugRouter";
|
||||||
import prisma from "@src/prisma";
|
|
||||||
import os from "os";
|
import os from "os";
|
||||||
import { getCommitHash } from "@utils/gitCommitHash";
|
import { getCommitHash } from "@utils/gitCommitHash";
|
||||||
import authRouter from "@src/routers/authRouter";
|
import authRouter from "@src/routers/authRouter";
|
||||||
|
import { Response } from 'express';
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 3000;
|
const port = 3000;
|
||||||
|
@ -44,7 +43,7 @@ console.log("\n");
|
||||||
|
|
||||||
logger.info("Starting server...");
|
logger.info("Starting server...");
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (res: Response) => {
|
||||||
res.status(200).sendFile("index.html", { root: "static" });
|
res.status(200).sendFile("index.html", { root: "static" });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user