Skip to content

/post routes don't seem to be protected by authentication  #649

Description

@Aosmiles

Only post/:id seems to be protected with authentication.

It is possible to use postman or thunder client to make requests to the /post endpoints without being logged in.

perhaps moving the ensureAuth to server.js as middleware before all post routes would fix it.

app.use("/", mainRoutes);
app.use("/post", ensureAuth, postRoutes);

maybe this is covered in the classes and I missed something though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions