Created
April 29, 2020 20:03
-
-
Save MatthewMarkgraaff/d8175e33f0509b9b81fc81e7cb87d38f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Koa = require('koa'); | |
const staticKoa = new Koa(); | |
const serve = require('koa-static'); | |
const path = require('path'); | |
staticKoa.use(serve(path.join(__dirname, "./client/public/"), {})); | |
module.exports = staticKoa; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment