This file contains 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
import React, { Component } from "react"; | |
import { render } from "react-dom"; | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route, | |
Link, | |
Redirect, | |
} from "react-router-dom"; | |
import { AuthenticatedRoute, Login } from "./Authentication"; |
This file contains 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
import React, { Component } from "react"; | |
import { render } from "react-dom"; | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route, | |
Link, | |
Redirect, | |
withRouter, | |
} from "react-router-dom"; |
This file contains 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
from django.urls import include, path | |
from rest_framework import routers | |
from api import views | |
router = routers.DefaultRouter() | |
router.register(r'users', views.UserViewSet) | |
router.register(r'groups', views.GroupViewSet) | |
router.register(r'characters', views.CharacterViewSet) | |
# Setup automatic URL routing |