Skip to content

Latest commit

 

History

History

connect-static

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Macro.swift connect-static

Demonstrates the use of the connect.serveStatic middleware.

Running the Sample

If you have swift-sh installed (brew install swift-sh), just starting the main.swift file works:

$ Sources/connect-static/main.swift
2020-01-07T17:14:35+0100 notice: Server listening on http://localhost:1337/

Or you can use swift run w/o installing additional software:

$ swift run connect-static
2020-01-07T21:37:05+0100 notice: Server listening on http://localhost:1337/

Who

Macro is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.

There is a #microexpress channel on the Noze.io Slack. Feel free to join!