mirror of
https://github.com/filecoffee/filehost.git
synced 2024-11-13 19:49:56 +01:00
10 lines
245 B
JavaScript
10 lines
245 B
JavaScript
|
const express = require("express");
|
||
|
const { uploadFile, getFile } = require("../controllers/file.controller");
|
||
|
|
||
|
const router = express.Router();
|
||
|
|
||
|
router.post("/upload", uploadFile);
|
||
|
router.get("/u/:filename", getFile);
|
||
|
|
||
|
module.exports = router;
|