Skip to content

Commit

Permalink
Merge pull request #34 from UMC-FITple/fix/#33_backend_cicd-3
Browse files Browse the repository at this point in the history
CI/CD 파이프라인 수정
  • Loading branch information
seoyeoneel02 authored Aug 14, 2024
2 parents 856b372 + 1d83779 commit 6e76ea1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { init } from './src/db/index.js';
import { status } from './src/config/response.status.js';
import { BaseError } from './src/config/error.js';
import { response } from './src/config/response.js';
import { healthRoute } from './src/routes/health.js';
import { signupRouter } from './src/routes/signup.js';
import { loginRouter } from './src/routes/login.js';
import { searchRouter } from './src/routes/search.js';
Expand Down Expand Up @@ -37,6 +38,7 @@ app.use(express.urlencoded({ extended: true }));
app.use('/api-docs', SwaggerUi.serve, SwaggerUi.setup(specs));

// router setting
app.use("/health", healthRoute);
app.use("/FITple/signup",signupRouter);
app.use("/FITple/login",loginRouter);
app.use('/FITple/search', searchRouter);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start:dev": "nodemon --exec babel-node index.js",
"start:dist": "webpack --mode production & node ./dist/main.js",
"start": "node main.js",
"start": "node index.js",
"dev": "nodemon src/index.js",
"build": "webpack",
"lint": "eslint .",
Expand Down
3 changes: 3 additions & 0 deletions src/domains/health/health.controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const healthController = (req, res, next) => {
res.send("HELLO, I'm Healthy!");
};
6 changes: 6 additions & 0 deletions src/routes/health.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import express from "express";
import { healthController } from "../domains/health/health.controller.js";

export const healthRoute = express.Router();

healthRoute.get('', healthController)

0 comments on commit 6e76ea1

Please sign in to comment.