summaryrefslogtreecommitdiff
path: root/app/server/util
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-29 02:01:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-29 02:01:04 +0200
commita77de3f5ee9826e8391735ee18809fc716c35bbd (patch)
treefa2092c7e3fff41f82c5864995fa84ece5dbdee7 /app/server/util
parent0296adc3ace0e36b92a56ec3a01a933b9bbd2e99 (diff)
dispatch all the events lol
Diffstat (limited to 'app/server/util')
-rw-r--r--app/server/util/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/server/util/api.js b/app/server/util/api.js
index 2b2a9e4..d29d42e 100644
--- a/app/server/util/api.js
+++ b/app/server/util/api.js
@@ -1,7 +1,7 @@
const db = require('../db')
export function api (app, type) {
- const type_s = '/' + type + 's/'
+ const type_s = '/api/' + type + '/'
const type_id = type_s + ':id'
const model = db.models[type]