[READ-ONLY] Mirror of https://github.com/shkm/crapi. 📠 A HTTP API for your JSON/YAML files
crystal json key-value-store yaml
0

Configure Feed

Select the types of activity you want to include in your feed.

bug: get it compiling again

+2 -2
+2 -2
src/crapi.cr
··· 101 101 end 102 102 103 103 104 - def serve(data) 104 + def serve(data : AnyDataType, options : Options) 105 105 server = HTTP::Server.new do |context| 106 106 keys = path_to_lookup_keys(context.request.path) 107 107 value = dig_data?(data, keys) ··· 125 125 options = Options.parse 126 126 data = parse_file(options.file_path) 127 127 128 - serve(data) 128 + serve(data, options) 129 129 end 130 130 131 131 main