2020-02-18 21:30:26 +01:00
|
|
|
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
2019-07-17 13:34:07 +02:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
2020-02-08 20:23:17 +01:00
|
|
|
from .models import Note
|
2019-07-17 13:34:07 +02:00
|
|
|
|
|
|
|
app_name = 'note'
|
|
|
|
urlpatterns = [
|
2019-07-17 13:53:58 +02:00
|
|
|
path('transfer/', views.TransactionCreate.as_view(), name='transfer'),
|
2020-02-18 21:14:29 +01:00
|
|
|
path('buttons/create/', views.TransactionTemplateCreateView.as_view(), name='template_create'),
|
|
|
|
path('buttons/update/<int:pk>/', views.TransactionTemplateUpdateView.as_view(), name='template_update'),
|
|
|
|
path('buttons/', views.TransactionTemplateListView.as_view(), name='template_list'),
|
|
|
|
path('consos/', views.ConsoView.as_view(), name='consos'),
|
2020-02-08 21:40:32 +01:00
|
|
|
|
|
|
|
# API for the note autocompleter
|
2020-02-18 21:14:29 +01:00
|
|
|
path('note-autocomplete/', views.NoteAutocomplete.as_view(model=Note), name='note_autocomplete'),
|
2019-07-17 13:34:07 +02:00
|
|
|
]
|