diff --git a/gambling.js b/gambling.js index bddee51..29d2dba 100644 --- a/gambling.js +++ b/gambling.js @@ -2,12 +2,13 @@ const express = require("express"); const app = express(); const swaggerUi = require('swagger-ui-express'); const swaggerDocument = require('./swagger.json'); +const path = require("path"); const port = 3000; app.use('/swagger-ui', swaggerUi.serve, swaggerUi.setup(swaggerDocument)); app.get("/", (request, respond) => { - respond.send("Test") + respond.sendFile(path.join(__dirname, 'structure.png')); }); app.listen(port, () => { diff --git a/structure.png b/structure.png new file mode 100644 index 0000000..839c209 Binary files /dev/null and b/structure.png differ diff --git a/swagger.json b/swagger.json new file mode 100644 index 0000000..b03412c --- /dev/null +++ b/swagger.json @@ -0,0 +1,25 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "GAMBLE!", + "description": "Gambling API", + "version": "1.0.0" + }, + "servers": [ + { + "url": "http://localhost:3000/" + } + ], + "paths": { + "/": { + "get": { + "description": "", + "responses": { + "200": { + "description": "OK" + } + } + } + } + } +} \ No newline at end of file