Commit 51720f4c authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

Start cleaning backend and moving account to API

parent 802c9c13
......@@ -8,17 +8,17 @@ from rest_framework_jwt.views import (
urlpatterns = [
re_path(
r'^auth/obtain_token/',
r'^obtain_token/',
obtain_jwt_token,
name='api-jwt-auth'
),
re_path(
r'^auth/refresh_token/',
r'^refresh_token/',
refresh_jwt_token,
name='api-jwt-refresh'
),
re_path(
r'^auth/verify_token/',
r'^verify_token/',
verify_jwt_token,
name='api-jwt-verify'
),
......
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('auth/', include('metagenedb.api.accounts.urls')),
path('catalog/', include('metagenedb.apps.catalog.urls'))
]
\ No newline at end of file
from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'
......@@ -4,7 +4,7 @@ from . import views
urlpatterns = [
re_path(r'^api/genes/$', views.gene_list, name='genes'),
re_path(r'^api/genes/(?P<gene_id>.*)$', views.gene_detail),
re_path(r'^api/gene_length$', views.gene_length, name='gene_length'),
re_path(r'^genes/$', views.gene_list, name='genes'),
re_path(r'^genes/(?P<gene_id>.*)$', views.gene_detail),
re_path(r'^gene_length$', views.gene_length, name='gene_length'),
]
......@@ -10,7 +10,6 @@ environ.Env.read_env(root('.env')) # reading .env file
INSTALLED_APPS = [
'metagenedb.apps.catalog',
'metagenedb.apps.accounts',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......
......@@ -18,7 +18,6 @@ from django.urls import include, path
urlpatterns = [
path('', include('metagenedb.apps.accounts.urls')),
path('api/', include('metagenedb.api.urls')),
path('admin/', admin.site.urls),
path('catalog/', include('metagenedb.apps.catalog.urls'))
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment