Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- typescript #react #jsx #component #usestate
- connect-mongo
- serializeUser
- updatemany
- expess
- __dirname
- react#로스트아크#mbti#테스트
- typescript #class #extends #public #private #protected #static
- typescript #import #export #*
- git vscode
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- github#githubpages#gh-pages#deploy
- 정적 페이지
- mongodb 입출력
- GitHub Actions
- github#로컬저장소#원격저장소
- Passport
- CSS
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- deserializeUser
- Promise #async #await #try #catch
- TypeScript #문법
- updateone
- e.target
- github#githubpages#빈화면#basename
- typescript #unknown
- typescript #constructor #class #public #private
- ejs 문법
- insertone
- sendFile
Archives
- Today
- Total
목록비동기 (1)
VaIice의 이야기

1. 예시 코드 - require 사용 (import도 가능) // shop.js const router = require('express').Router()router.get('/shop/shirts', (request, response) => { response.send('셔츠')})router.get('/shop/pants', (request, response) => { response.send('바지')})module.exports = router const router = require('express').Router() app -> router 변경 //server.jsapp.use('/', require('./routes/shop.js')) 2. URL 축약 // sh..
[Node.js]
2024. 7. 20. 00:55