mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-14 10:47:19 +02:00
Initial commit of the React application with UI components, form, camera, and indexedDB integration for sale data management. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/02867739-9ff7-4441-aca2-12e0153376c5.jpg
16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import type { Express } from "express";
|
|
import { createServer, type Server } from "http";
|
|
import { storage } from "./storage";
|
|
|
|
export async function registerRoutes(app: Express): Promise<Server> {
|
|
// put application routes here
|
|
// prefix all routes with /api
|
|
|
|
// use storage to perform CRUD operations on the storage interface
|
|
// e.g. storage.insertUser(user) or storage.getUserByUsername(username)
|
|
|
|
const httpServer = createServer(app);
|
|
|
|
return httpServer;
|
|
}
|