forked from on-prem/jidoteki-admin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.l
28 lines (21 loc) · 788 Bytes
/
app.l
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2015 Alexander Williams, Unscramble <[email protected]>
# Jidoteki Admin API
(load "module.l")
# Load dependencies
(if *CPU
(and (load ".modules/picolisp-json/HEAD/json.l") (symbols 'json))
(load "@lib/json.l") )
(setq
*API_VERSION (if (sys "JIDO_API_VERSION") @ 1)
*API_PATH (pack "api/v" *API_VERSION)
*Admin_path (if (sys "JIDO_ADMIN_PATH") @ "/opt/jidoteki/admin/")
*Upload_path (pack *Admin_path "home/sftp/uploads/") )
# Load core
(chdir (pack *API_PATH "/core")
(load "allowed.l" "api.l" "auth.l" "helpers.l") )
(api-start)
(wait)