import { SetMetadata } from "@nestjs/common";

export const IS_PUBLIC_KEY = "isPublic";

// TODO: integrate @edr/auth — pair with the JwtAuthGuard from the auth package
// so it skips authentication for routes marked @Public(). Until then, this is
// just metadata.
export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);
