Rename and move notifications endpoints

This commit is contained in:
emanuele-f 2020-05-06 17:16:00 +02:00
parent 047c5e220f
commit 3557284b87
8 changed files with 89 additions and 164 deletions

View file

@ -10,7 +10,7 @@ local page_utils = require("page_utils")
local template = require "template_utils"
local json = require "dkjson"
local plugins_utils = require("plugins_utils")
local notification_endpoint_consts = plugins_utils.loadModule("notification_endpoints", "notification_endpoint_consts")
local notification_endpoints = require("notification_endpoints")
sendHTTPContentTypeHeader('text/html')
@ -23,7 +23,7 @@ page_utils.print_page_title(i18n("endpoint_notifications.endpoint_list"))
-- Prepare the response
local context = {
notifications = {
endpoints = notification_endpoint_consts
endpoints = notification_endpoints.get_types(),
},
template_utils = template,
page_utils = page_utils,