corrected invalid import

This commit is contained in:
Paul Liverman III 2018-04-24 17:31:19 -07:00
parent 3cd5f255ec
commit 2872e81ab6
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import assert_valid from require "lapis.validate"
import APIKeys, Users, Tasks from require "models"
import autoload from require "locator"
import api_request from autoload "helpers"
import api_request from autoload "helpers.api"
-- import random from locate "calc"
-- import escape_similar_to from locate "db"
@ -12,7 +12,7 @@ class API extends Application
@path: "/v1"
@name: "api_"
@before_filter( api_request =>
@before_filter( capture_errors_json json_params =>
-- TODO implement Authorization: api_key VALUE as acceptable method to send api_key
yield_error "api_key not specified!" unless @params.api_key -- this does not seem to be triggering!!!
@api_key = APIKeys\find key: @params.api_key

View File

@ -9,6 +9,9 @@
{
path: "applications"
}
-- { -- not actually useful
-- path: "helpers"
-- }
{
path: "utility"
remote: {