NestJS 수정1..
This commit is contained in:
parent
db41767505
commit
375db727c9
@ -1,6 +0,0 @@
|
|||||||
import { Request, Response, NextFunction } from 'express'
|
|
||||||
|
|
||||||
export function logger(req: Request, res: Response, next: NextFunction) {
|
|
||||||
console.log('Request...')
|
|
||||||
next()
|
|
||||||
}
|
|
||||||
@ -28,7 +28,6 @@ async function bootstrap() {
|
|||||||
methods: process.env.CORS_ALLOW_METHOD,
|
methods: process.env.CORS_ALLOW_METHOD,
|
||||||
credentials: true
|
credentials: true
|
||||||
})
|
})
|
||||||
//app.use(logger)
|
|
||||||
await app.listen(3000, function () {
|
await app.listen(3000, function () {
|
||||||
console.log(
|
console.log(
|
||||||
'[CORS-enabled->npm install -g webpack webpack-cli] web server listening on port 3000'
|
'[CORS-enabled->npm install -g webpack webpack-cli] web server listening on port 3000'
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export class TodoController {
|
|||||||
if (query.filter) {
|
if (query.filter) {
|
||||||
filterSql = {
|
filterSql = {
|
||||||
AND: {
|
AND: {
|
||||||
[query.filterField]: query.filter
|
[query.filterField]: query.filter === 'true' ? true : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user