-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add sidebar dashboard list api call #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| alt="λ‘κ³ ννμ΄μ§μ΄λ" | ||
| width={24} | ||
| height={27} | ||
| priority |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ½μμ priorityλ£μΌλΌκ³ μλ©λ κ°μ§κ³ κ± λ£μμ΄μ
| export function middleware(request: NextRequest) { | ||
| const user = request.cookies.get('user'); // TODO get token | ||
|
|
||
| // const restrictedPaths = ['/dashboard', '/mypage', '/mydashboard']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄κ² μ§μ§ μ μ©λμ΄μΌνλ μ½λμΈλ° μ§κΈ κ°λ°μ€μ΄λΌ μ£Όμμ²λ¦¬ ν΄λ¨μ΅λλ€
najitwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ³ μνμ ¨μ΅λλ€~ π
λμ½ μ μλμ£ ... π
| setLoading(false); | ||
| } | ||
| }, [url, options.method, options.params, options.body]); | ||
| }, [url, JSON.stringify(options)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ¬κΈ°μ JSON.stringify() μ΄κ²μ μ¬μ©νμ μλκ° λκ°μ???
κ·Έλ₯ optionsλ‘ λ£μΌλ©΄ μλλμ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@najitwo λμ½μλ¨222....
μ΄κ±°.. optionλ€μ΄ νμ λ€λ₯Έκ°μ κ°μ§κ³ μ€λκ±°λΌμ 무νλ‘λ© λλλΌκ΅¬μ...
| import { NextRequest, NextResponse } from 'next/server'; | ||
|
|
||
| export function middleware(request: NextRequest) { | ||
| const user = request.cookies.get('user'); // TODO get token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ―Έλ€μ¨μ΄ μ¬μ©νλ €λ©΄ set cookie headerλ₯Ό μ€μ ν΄μΌκ² λ€μ π€
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@najitwo μ..!
κ·Έλ¬λ€μ μκ°ν΄λ³΄λκΉ.. λΈλΌμ°μ κ°κΈ°μ μ΄λΌ accessToken 컨ν
μ€νΈμμ λͺ»κ°μ Έμ€λ€μ...? (λ§λ..)
μ... κ·ΈλΌ μ΄κ±° λͺ»μ°λλ°..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ
const authHeader = request.headers.get('authorization');
μ΄λ°μμΌλ‘ ν€λμμ κ°μ Έμ€λ©΄λλλ΄μ!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ ν¬ apiκ° set cookie header κ° λμλκ² μλλΌκ°μ§κ³ ...μλ§ λ§λ€μ΄μΌ λ κ±°μμ!!
λ‘κ·ΈμΈ λ‘μ§μ cookies().set("accessToken", asdjaskdjaskd) μλ°μμΌλ‘
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ μλλλ€ μ κ° μλͺ»μκ°νμ΄μ
μΏ ν€ μ€μ μ§μ νλ건 λ³λ‘ λ°... γ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄κ±΄... set cookie μν΄μ€ λ°±μλ νμΌλ‘ π€£
* β¨ feat: add header and sidebar css and types * π± style: add favicon and title * π style: add header button css * π style: add header button icon * β¨ feat: add userInfo component with skeleton * π style: add sidebar dashboard span * β»οΈ refactor: add header directory * π¨ chore: add sidebar directory * β¨ feat: add call dashboards on sidebar * π chore: rename directory name under mydashboard to avoid routing * β¨ feat: add middleware and 404 empty page
* β¨ feat: add header and sidebar css and types * π± style: add favicon and title * π style: add header button css * π style: add header button icon * β¨ feat: add userInfo component with skeleton * π style: add sidebar dashboard span * β»οΈ refactor: add header directory * π¨ chore: add sidebar directory * β¨ feat: add call dashboards on sidebar * π chore: rename directory name under mydashboard to avoid routing * β¨ feat: add middleware and 404 empty page

π Related Issue
π Description
π’ Notes