diff --git a/src/app.ts b/src/app.ts index 56e2511..3f31999 100644 --- a/src/app.ts +++ b/src/app.ts @@ -37,6 +37,8 @@ export const createApp = async ( ); } + app.use("/", express.static("static")); + const api = new OpenAPIBackend({ definition: process.env["SPEC_FILE"] ?? "./specs/moddedccapi_20240906.json", strict: false, diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..11061c7 --- /dev/null +++ b/static/index.html @@ -0,0 +1,18 @@ + + + +cc-api-sandbox + + + +

cc-api-sandbox

+The API server is running and working correctly! You can use curl -X "<METHOD>" http://127.0.0.1:9000/<api path> +to access the API endpoints. + + \ No newline at end of file