mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 05:25:34 +00:00
Completely refactored examples to run only once and have multiple endpoints
This commit is contained in:
14
examples/self-hosted/src/webserver.ts
Normal file
14
examples/self-hosted/src/webserver.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Generic webserver instance for the examples
|
||||
* @Author Alexander P. Cerutti
|
||||
* Requires express to run
|
||||
*/
|
||||
|
||||
import express from "express";
|
||||
export const app = express();
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
app.listen(8080, "0.0.0.0", () => {
|
||||
console.log("Webserver started.");
|
||||
});
|
||||
Reference in New Issue
Block a user