mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
I have no idea how to do union types for properties
and how to use node modules
This commit is contained in:
1 parent
5d61f02af8
commit
60bc96cefb
2 files changed
+219
-185
No files matched your search
+9
-1
@@ -9,10 +9,18 @@ var server = Hapi.createServer('localhost', 8000);
|
||||
server.route({
|
||||
method: 'GET',
|
||||
path: '/hello',
|
||||
handler: function (request, reply) {
|
||||
handler: function (request: Hapi.Request, reply: Function) {
|
||||
reply('hello world');
|
||||
}
|
||||
});
|
||||
|
||||
server.route([{
|
||||
method: 'GET',
|
||||
path: '/hello2',
|
||||
handler: function (request: Hapi.Request, reply: Function) {
|
||||
reply('hello world2');
|
||||
}
|
||||
}]);
|
||||
|
||||
// Start the server
|
||||
server.start();
|
||||
Reference in new issue
Block a user