create API server

This commit is contained in:
Takeshi Kimata
2024-02-04 12:05:06 +09:00
parent 182f021b39
commit cdaa99b89a
7 changed files with 1388 additions and 0 deletions

9
backend/routes/index.js Normal file
View File

@@ -0,0 +1,9 @@
const express = require('express');
const router = express.Router();
// "/" GET
router.get('/', (req, res) => {
res.send('This is the main page!');
});
module.exports = router;

View File

@@ -0,0 +1,9 @@
const express = require('express');
const router = express.Router();
// "/projects" GET
router.get('/', (req, res) => {
res.send('This is the projects page!');
});
module.exports = router;