Diff

mod_rest/apidemo.lib.lua @ 4528:fd15e7f00ff5

mod_rest: Move openapi spec into res/ dir to get it included in rocks
author Kim Alvefur <zash@zash.se>
date Tue, 23 Mar 2021 20:27:44 +0100
parent 4498:1776831d0fab
child 4550:0befc680970b
line wrap: on
line diff
--- a/mod_rest/apidemo.lib.lua	Tue Mar 23 20:25:21 2021 +0100
+++ b/mod_rest/apidemo.lib.lua	Tue Mar 23 20:27:44 2021 +0100
@@ -20,7 +20,7 @@
 end
 
 do
-	local f = module:load_resource("openapi.yaml");
+	local f = module:load_resource("res/openapi.yaml");
 	_M.schema = {
 		headers = {
 			content_type = "text/x-yaml";