This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PrivateRoute: React.FC<PrivateRouteProps> = ({ | |
component: Component, | |
requiredPermission, | |
logout, | |
...rest | |
}) => { | |
const userIsLoggedIn = useAppSelector(state => isLoggedIn(state)); | |
const userRoles: string[] = useAppSelector(state => getRoles(state)); | |
const { t } = useTranslation('auth'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: blog-backend-deployment-$VERSION | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
subsystem: blog-backend-$VERSION | |
strategy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Follow this setup guide to integrate the Deno language server with your editor: | |
// https://deno.land/manual/getting_started/setup_your_environment | |
// This enables autocomplete, go to definition, etc. | |
import { serve } from 'https://deno.land/[email protected]/http/server.ts'; | |
import { default as axiod } from 'https://deno.land/x/[email protected]/mod.ts'; | |
import * as djwt from 'https://deno.land/x/[email protected]/mod.ts'; | |
import * as types from './types'; | |
serve(async (req) => { |
OlderNewer