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,
|
||||
credentials: true
|
||||
})
|
||||
//app.use(logger)
|
||||
await app.listen(3000, function () {
|
||||
console.log(
|
||||
'[CORS-enabled->npm install -g webpack webpack-cli] web server listening on port 3000'
|
||||
|
||||
@ -32,7 +32,7 @@ export class TodoController {
|
||||
if (query.filter) {
|
||||
filterSql = {
|
||||
AND: {
|
||||
[query.filterField]: query.filter
|
||||
[query.filterField]: query.filter === 'true' ? true : false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user