Created
October 4, 2017 11:32
-
-
Save Pierre-RA/94727a4aa4dc09474a686d4d2c9d4373 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
import { Request, Response } from 'express'; | |
let pkg = require(__dirname + '/../../package.json'); | |
export let index = (req: Request, res: Response) => { | |
res.json({ | |
message: 'Welcome to API sekeleton.', | |
version: pkg.version, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment