mirror of
https://github.com/pikami/scrummie-poker.git
synced 2026-04-17 03:49:23 +01:00
Protect routes that need authentication
This commit is contained in:
@@ -9,7 +9,7 @@ import CreateTicketForm from './components/CreateTicketForm';
|
||||
|
||||
const fibonacciSequence = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 100];
|
||||
|
||||
const route = getRouteApi('/estimate/session/$sessionId');
|
||||
const route = getRouteApi('/_authenticated/estimate/session/$sessionId');
|
||||
|
||||
const Estimation: React.FC = () => {
|
||||
const { sessionId } = route.useParams();
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
} from '../components';
|
||||
import { useState } from 'react';
|
||||
|
||||
const route = getRouteApi('/');
|
||||
const route = getRouteApi('/_authenticated/');
|
||||
|
||||
function Home() {
|
||||
const user = useUser();
|
||||
|
||||
Reference in New Issue
Block a user