Created
October 21, 2023 16:40
-
-
Save gullinbursti/7dfb311ede01fce6c6545efe99d1724a to your computer and use it in GitHub Desktop.
express w/ front + api
This file contains hidden or 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 express = require('express'); | |
express().use('/api', require('./api')).use(express.static('public')).listen(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment