Skip to content

Feature/Middleware for admin routeΒ #4

@fanesz

Description

@fanesz

Right now, there is around 24 route for CRUD. There is some of the route that used for client frontend, and admin frontend
for example: create a kas submission, should be on client and admin. But update kas submission status, should only be on admin.

Todo:

  • Implement middleware for admin-only route with bearer token checker, store the token inside .env of backend and admin-frontend repo.
  • Implement current refresh-access token for each route that require admin role, to get the token, user (admin) should login first

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸ“‹ Empathize

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions