Skip to content

Check the cookies #19

Description

@shahenazmonia

Why did you pass a file as a parameter since you can check the cookies as a first step and handle the page depend on the result like:

if(req.headers.cookie === undefined){
// handle the login/signup page
}else{
// get the cookies values and handle the home page
}

let filePath = path.join(__dirname, '..', '..', 'public', `${page}.html`);
if (page === 'profile') {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions